Record Class MqttClientProvisioningTypePatchDto
java.lang.Object
java.lang.Record
energy.eddie.aiida.dtos.provisioning.MqttClientProvisioningTypePatchDto
- Record Components:
type- Provisioning type to activate.host- MQTT broker host.username- MQTT username.password- MQTT password.topic- MQTT topic.
- All Implemented Interfaces:
ProvisioningTypePatchDto
public record MqttClientProvisioningTypePatchDto(@NotNull(message="must not be null") InboundProvisioningType type, @NotBlank(message="must not be blank") String host, @NotBlank(message="must not be blank") String username, @NotBlank(message="must not be blank") String password, @NotBlank(message="must not be blank") String topic)
extends Record
implements ProvisioningTypePatchDto
Request for activating MQTT client provisioning.
-
Constructor Summary
ConstructorsConstructorDescriptionMqttClientProvisioningTypePatchDto(@NotNull(message="must not be null") InboundProvisioningType type, @NotBlank(message="must not be blank") String host, @NotBlank(message="must not be blank") String username, @NotBlank(message="must not be blank") String password, @NotBlank(message="must not be blank") String topic) Creates an instance of aMqttClientProvisioningTypePatchDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank(message="must not be blank") Stringhost()Returns the value of thehostrecord component.@NotBlank(message="must not be blank") Stringpassword()Returns the value of thepasswordrecord component.@NotBlank(message="must not be blank") Stringtopic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.@NotNull(message="must not be null") InboundProvisioningTypetype()Returns the value of thetyperecord component.@NotBlank(message="must not be blank") Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
MqttClientProvisioningTypePatchDto
public MqttClientProvisioningTypePatchDto(@NotNull(message="must not be null") @NotNull(message="must not be null") InboundProvisioningType type, @NotBlank(message="must not be blank") @NotBlank(message="must not be blank") String host, @NotBlank(message="must not be blank") @NotBlank(message="must not be blank") String username, @NotBlank(message="must not be blank") @NotBlank(message="must not be blank") String password, @NotBlank(message="must not be blank") @NotBlank(message="must not be blank") String topic) Creates an instance of aMqttClientProvisioningTypePatchDtorecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
type
@NotNull(message="must not be null") public @NotNull(message="must not be null") InboundProvisioningType type()Returns the value of thetyperecord component.- Specified by:
typein interfaceProvisioningTypePatchDto- Returns:
- the value of the
typerecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
username
@NotBlank(message="must not be blank") public @NotBlank(message="must not be blank") String username()Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
@NotBlank(message="must not be blank") public @NotBlank(message="must not be blank") String password()Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-