@Override public SmsConfigurationType build() { return new SmsConfigurationType(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof SmsConfigurationType)) { return false; } SmsConfigurationType other = (SmsConfigurationType) obj; return Objects.equals(snsCallerArn(), other.snsCallerArn()) && Objects.equals(externalId(), other.externalId()); }
public final SmsConfigurationType.Builder getSmsConfiguration() { return smsConfiguration != null ? smsConfiguration.toBuilder() : null; }
/** * <p> * The SMS configuration. * </p> * This is a convenience that creates an instance of the {@link SmsConfigurationType.Builder} avoiding the need * to create one manually via {@link SmsConfigurationType#builder()}. * * When the {@link Consumer} completes, {@link SmsConfigurationType.Builder#build()} is called immediately and * its result is passed to {@link #smsConfiguration(SmsConfigurationType)}. * * @param smsConfiguration * a consumer that will call methods on {@link SmsConfigurationType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #smsConfiguration(SmsConfigurationType) */ default Builder smsConfiguration(Consumer<SmsConfigurationType.Builder> smsConfiguration) { return smsConfiguration(SmsConfigurationType.builder().applyMutation(smsConfiguration).build()); }
/** * <p> * SMS configuration. * </p> * This is a convenience that creates an instance of the {@link SmsConfigurationType.Builder} avoiding the need * to create one manually via {@link SmsConfigurationType#builder()}. * * When the {@link Consumer} completes, {@link SmsConfigurationType.Builder#build()} is called immediately and * its result is passed to {@link #smsConfiguration(SmsConfigurationType)}. * * @param smsConfiguration * a consumer that will call methods on {@link SmsConfigurationType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #smsConfiguration(SmsConfigurationType) */ default Builder smsConfiguration(Consumer<SmsConfigurationType.Builder> smsConfiguration) { return smsConfiguration(SmsConfigurationType.builder().applyMutation(smsConfiguration).build()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(snsCallerArn()); hashCode = 31 * hashCode + Objects.hashCode(externalId()); return hashCode; }
/** * <p> * The SMS configuration. * </p> * This is a convenience that creates an instance of the {@link SmsConfigurationType.Builder} avoiding the need * to create one manually via {@link SmsConfigurationType#builder()}. * * When the {@link Consumer} completes, {@link SmsConfigurationType.Builder#build()} is called immediately and * its result is passed to {@link #smsConfiguration(SmsConfigurationType)}. * * @param smsConfiguration * a consumer that will call methods on {@link SmsConfigurationType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #smsConfiguration(SmsConfigurationType) */ default Builder smsConfiguration(Consumer<SmsConfigurationType.Builder> smsConfiguration) { return smsConfiguration(SmsConfigurationType.builder().applyMutation(smsConfiguration).build()); }
public final SmsConfigurationType.Builder getSmsConfiguration() { return smsConfiguration != null ? smsConfiguration.toBuilder() : null; }
@Override public SmsConfigurationType build() { return new SmsConfigurationType(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof SmsConfigurationType)) { return false; } SmsConfigurationType other = (SmsConfigurationType) obj; return Objects.equals(snsCallerArn(), other.snsCallerArn()) && Objects.equals(externalId(), other.externalId()); }
/** * <p> * The SMS configuration. * </p> * This is a convenience that creates an instance of the {@link SmsConfigurationType.Builder} avoiding the need * to create one manually via {@link SmsConfigurationType#builder()}. * * When the {@link Consumer} completes, {@link SmsConfigurationType.Builder#build()} is called immediately and * its result is passed to {@link #smsConfiguration(SmsConfigurationType)}. * * @param smsConfiguration * a consumer that will call methods on {@link SmsConfigurationType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #smsConfiguration(SmsConfigurationType) */ default Builder smsConfiguration(Consumer<SmsConfigurationType.Builder> smsConfiguration) { return smsConfiguration(SmsConfigurationType.builder().applyMutation(smsConfiguration).build()); } }
public final SmsConfigurationType.Builder getSmsConfiguration() { return smsConfiguration != null ? smsConfiguration.toBuilder() : null; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(snsCallerArn()); hashCode = 31 * hashCode + Objects.hashCode(externalId()); return hashCode; }
/** * <p> * The SMS configuration. * </p> * This is a convenience that creates an instance of the {@link SmsConfigurationType.Builder} avoiding the need * to create one manually via {@link SmsConfigurationType#builder()}. * * When the {@link Consumer} completes, {@link SmsConfigurationType.Builder#build()} is called immediately and * its result is passed to {@link #smsConfiguration(SmsConfigurationType)}. * * @param smsConfiguration * a consumer that will call methods on {@link SmsConfigurationType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #smsConfiguration(SmsConfigurationType) */ default Builder smsConfiguration(Consumer<SmsConfigurationType.Builder> smsConfiguration) { return smsConfiguration(SmsConfigurationType.builder().applyMutation(smsConfiguration).build()); }
public final SmsConfigurationType.Builder getSmsConfiguration() { return smsConfiguration != null ? smsConfiguration.toBuilder() : null; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "SnsCallerArn": return Optional.ofNullable(clazz.cast(snsCallerArn())); case "ExternalId": return Optional.ofNullable(clazz.cast(externalId())); default: return Optional.empty(); } }
/** * <p> * SMS configuration. * </p> * This is a convenience that creates an instance of the {@link SmsConfigurationType.Builder} avoiding the need * to create one manually via {@link SmsConfigurationType#builder()}. * * When the {@link Consumer} completes, {@link SmsConfigurationType.Builder#build()} is called immediately and * its result is passed to {@link #smsConfiguration(SmsConfigurationType)}. * * @param smsConfiguration * a consumer that will call methods on {@link SmsConfigurationType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #smsConfiguration(SmsConfigurationType) */ default Builder smsConfiguration(Consumer<SmsConfigurationType.Builder> smsConfiguration) { return smsConfiguration(SmsConfigurationType.builder().applyMutation(smsConfiguration).build()); }
public final SmsConfigurationType.Builder getSmsConfiguration() { return smsConfiguration != null ? smsConfiguration.toBuilder() : null; }
/** * 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("SmsConfigurationType").add("SnsCallerArn", snsCallerArn()).add("ExternalId", externalId()) .build(); }
/** * <p> * The SMS configuration. * </p> * This is a convenience that creates an instance of the {@link SmsConfigurationType.Builder} avoiding the need * to create one manually via {@link SmsConfigurationType#builder()}. * * When the {@link Consumer} completes, {@link SmsConfigurationType.Builder#build()} is called immediately and * its result is passed to {@link #smsConfiguration(SmsConfigurationType)}. * * @param smsConfiguration * a consumer that will call methods on {@link SmsConfigurationType.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #smsConfiguration(SmsConfigurationType) */ default Builder smsConfiguration(Consumer<SmsConfigurationType.Builder> smsConfiguration) { return smsConfiguration(SmsConfigurationType.builder().applyMutation(smsConfiguration).build()); }