@Override public NumberAttributeConstraintsType build() { return new NumberAttributeConstraintsType(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof NumberAttributeConstraintsType)) { return false; } NumberAttributeConstraintsType other = (NumberAttributeConstraintsType) obj; return Objects.equals(minValue(), other.minValue()) && Objects.equals(maxValue(), other.maxValue()); }
public final NumberAttributeConstraintsType.Builder getNumberAttributeConstraints() { return numberAttributeConstraints != null ? numberAttributeConstraints.toBuilder() : null; }
/** * <p> * Specifies the constraints for an attribute of the number type. * </p> * This is a convenience that creates an instance of the {@link NumberAttributeConstraintsType.Builder} avoiding * the need to create one manually via {@link NumberAttributeConstraintsType#builder()}. * * When the {@link Consumer} completes, {@link NumberAttributeConstraintsType.Builder#build()} is called * immediately and its result is passed to {@link #numberAttributeConstraints(NumberAttributeConstraintsType)}. * * @param numberAttributeConstraints * a consumer that will call methods on {@link NumberAttributeConstraintsType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #numberAttributeConstraints(NumberAttributeConstraintsType) */ default Builder numberAttributeConstraints(Consumer<NumberAttributeConstraintsType.Builder> numberAttributeConstraints) { return numberAttributeConstraints(NumberAttributeConstraintsType.builder().applyMutation(numberAttributeConstraints) .build()); }
/** * <p> * Specifies the constraints for an attribute of the number type. * </p> * This is a convenience that creates an instance of the {@link NumberAttributeConstraintsType.Builder} avoiding * the need to create one manually via {@link NumberAttributeConstraintsType#builder()}. * * When the {@link Consumer} completes, {@link NumberAttributeConstraintsType.Builder#build()} is called * immediately and its result is passed to {@link #numberAttributeConstraints(NumberAttributeConstraintsType)}. * * @param numberAttributeConstraints * a consumer that will call methods on {@link NumberAttributeConstraintsType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #numberAttributeConstraints(NumberAttributeConstraintsType) */ default Builder numberAttributeConstraints(Consumer<NumberAttributeConstraintsType.Builder> numberAttributeConstraints) { return numberAttributeConstraints(NumberAttributeConstraintsType.builder().applyMutation(numberAttributeConstraints) .build()); }
public NumberAttributeConstraintsType unmarshall(JsonUnmarshallerContext context) throws Exception { NumberAttributeConstraintsType.Builder numberAttributeConstraintsTypeBuilder = NumberAttributeConstraintsType.builder();
@Override public NumberAttributeConstraintsType build() { return new NumberAttributeConstraintsType(this); } }
public final NumberAttributeConstraintsType.Builder getNumberAttributeConstraints() { return numberAttributeConstraints != null ? numberAttributeConstraints.toBuilder() : null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof NumberAttributeConstraintsType)) { return false; } NumberAttributeConstraintsType other = (NumberAttributeConstraintsType) obj; return Objects.equals(minValue(), other.minValue()) && Objects.equals(maxValue(), other.maxValue()); }
/** * 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("NumberAttributeConstraintsType").add("MinValue", minValue()).add("MaxValue", maxValue()).build(); }
/** * Marshall the given parameter object */ public void marshall(NumberAttributeConstraintsType numberAttributeConstraintsType, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(numberAttributeConstraintsType, "numberAttributeConstraintsType"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(numberAttributeConstraintsType.minValue(), MINVALUE_BINDING); protocolMarshaller.marshall(numberAttributeConstraintsType.maxValue(), MAXVALUE_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }