/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("CreateReplicationSubnetGroupRequest") .add("ReplicationSubnetGroupIdentifier", replicationSubnetGroupIdentifier()) .add("ReplicationSubnetGroupDescription", replicationSubnetGroupDescription()).add("SubnetIds", subnetIds()) .add("Tags", tags()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationSubnetGroupIdentifier": return Optional.ofNullable(clazz.cast(replicationSubnetGroupIdentifier())); case "ReplicationSubnetGroupDescription": return Optional.ofNullable(clazz.cast(replicationSubnetGroupDescription())); case "SubnetIds": return Optional.ofNullable(clazz.cast(subnetIds())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("CreateReplicationSubnetGroupRequest") .add("ReplicationSubnetGroupIdentifier", replicationSubnetGroupIdentifier()) .add("ReplicationSubnetGroupDescription", replicationSubnetGroupDescription()).add("SubnetIds", subnetIds()) .add("Tags", tags()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationSubnetGroupIdentifier": return Optional.ofNullable(clazz.cast(replicationSubnetGroupIdentifier())); case "ReplicationSubnetGroupDescription": return Optional.ofNullable(clazz.cast(replicationSubnetGroupDescription())); case "SubnetIds": return Optional.ofNullable(clazz.cast(subnetIds())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationSubnetGroupIdentifier": return Optional.ofNullable(clazz.cast(replicationSubnetGroupIdentifier())); case "ReplicationSubnetGroupDescription": return Optional.ofNullable(clazz.cast(replicationSubnetGroupDescription())); case "SubnetIds": return Optional.ofNullable(clazz.cast(subnetIds())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } }
@Override public String toString() { return ToString.builder("CreateReplicationSubnetGroupRequest") .add("ReplicationSubnetGroupIdentifier", replicationSubnetGroupIdentifier()) .add("ReplicationSubnetGroupDescription", replicationSubnetGroupDescription()).add("SubnetIds", subnetIds()) .add("Tags", tags()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationSubnetGroupIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(replicationSubnetGroupDescription()); hashCode = 31 * hashCode + Objects.hashCode(subnetIds()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationSubnetGroupIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(replicationSubnetGroupDescription()); hashCode = 31 * hashCode + Objects.hashCode(subnetIds()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationSubnetGroupIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(replicationSubnetGroupDescription()); hashCode = 31 * hashCode + Objects.hashCode(subnetIds()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateReplicationSubnetGroupRequest)) { return false; } CreateReplicationSubnetGroupRequest other = (CreateReplicationSubnetGroupRequest) obj; return Objects.equals(replicationSubnetGroupIdentifier(), other.replicationSubnetGroupIdentifier()) && Objects.equals(replicationSubnetGroupDescription(), other.replicationSubnetGroupDescription()) && Objects.equals(subnetIds(), other.subnetIds()) && Objects.equals(tags(), other.tags()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateReplicationSubnetGroupRequest)) { return false; } CreateReplicationSubnetGroupRequest other = (CreateReplicationSubnetGroupRequest) obj; return Objects.equals(replicationSubnetGroupIdentifier(), other.replicationSubnetGroupIdentifier()) && Objects.equals(replicationSubnetGroupDescription(), other.replicationSubnetGroupDescription()) && Objects.equals(subnetIds(), other.subnetIds()) && Objects.equals(tags(), other.tags()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateReplicationSubnetGroupRequest)) { return false; } CreateReplicationSubnetGroupRequest other = (CreateReplicationSubnetGroupRequest) obj; return Objects.equals(replicationSubnetGroupIdentifier(), other.replicationSubnetGroupIdentifier()) && Objects.equals(replicationSubnetGroupDescription(), other.replicationSubnetGroupDescription()) && Objects.equals(subnetIds(), other.subnetIds()) && Objects.equals(tags(), other.tags()); }
/** * Marshall the given parameter object */ public void marshall(CreateReplicationSubnetGroupRequest createReplicationSubnetGroupRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(createReplicationSubnetGroupRequest, "createReplicationSubnetGroupRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(createReplicationSubnetGroupRequest.replicationSubnetGroupIdentifier(), REPLICATIONSUBNETGROUPIDENTIFIER_BINDING); protocolMarshaller.marshall(createReplicationSubnetGroupRequest.replicationSubnetGroupDescription(), REPLICATIONSUBNETGROUPDESCRIPTION_BINDING); protocolMarshaller.marshall(createReplicationSubnetGroupRequest.subnetIds(), SUBNETIDS_BINDING); protocolMarshaller.marshall(createReplicationSubnetGroupRequest.tags(), TAGS_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }