@Override public AccountQuota build() { return new AccountQuota(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(accountQuotaName()); hashCode = 31 * hashCode + Objects.hashCode(used()); hashCode = 31 * hashCode + Objects.hashCode(max()); return hashCode; }
@Override @SafeVarargs public final Builder accountQuotas(Consumer<AccountQuota.Builder>... accountQuotas) { accountQuotas(Stream.of(accountQuotas).map(c -> AccountQuota.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder accountQuotas(Consumer<AccountQuota.Builder>... accountQuotas) { accountQuotas(Stream.of(accountQuotas).map(c -> AccountQuota.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(accountQuotaName()); hashCode = 31 * hashCode + Objects.hashCode(used()); hashCode = 31 * hashCode + Objects.hashCode(max()); return hashCode; }
@Override @SafeVarargs public final Builder accountQuotas(Consumer<AccountQuota.Builder>... accountQuotas) { accountQuotas(Stream.of(accountQuotas).map(c -> AccountQuota.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override public AccountQuota build() { return new AccountQuota(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AccountQuota)) { return false; } AccountQuota other = (AccountQuota) obj; return Objects.equals(accountQuotaName(), other.accountQuotaName()) && Objects.equals(used(), other.used()) && Objects.equals(max(), other.max()); }
public AccountQuota unmarshall(JsonUnmarshallerContext context) throws Exception { AccountQuota.Builder accountQuotaBuilder = AccountQuota.builder();
@Override public AccountQuota build() { return new AccountQuota(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AccountQuota)) { return false; } AccountQuota other = (AccountQuota) obj; return Objects.equals(accountQuotaName(), other.accountQuotaName()) && Objects.equals(used(), other.used()) && Objects.equals(max(), other.max()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AccountQuota)) { return false; } AccountQuota other = (AccountQuota) obj; return Objects.equals(accountQuotaName(), other.accountQuotaName()) && Objects.equals(used(), other.used()) && Objects.equals(max(), other.max()); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(accountQuotaName()); hashCode = 31 * hashCode + Objects.hashCode(used()); hashCode = 31 * hashCode + Objects.hashCode(max()); return hashCode; }
/** * 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("AccountQuota").add("AccountQuotaName", accountQuotaName()).add("Used", used()).add("Max", max()) .build(); }
@Override public String toString() { return ToString.builder("AccountQuota").add("AccountQuotaName", accountQuotaName()).add("Used", used()).add("Max", max()) .build(); }
/** * 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("AccountQuota").add("AccountQuotaName", accountQuotaName()).add("Used", used()).add("Max", max()) .build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "AccountQuotaName": return Optional.ofNullable(clazz.cast(accountQuotaName())); case "Used": return Optional.ofNullable(clazz.cast(used())); case "Max": return Optional.ofNullable(clazz.cast(max())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "AccountQuotaName": return Optional.ofNullable(clazz.cast(accountQuotaName())); case "Used": return Optional.ofNullable(clazz.cast(used())); case "Max": return Optional.ofNullable(clazz.cast(max())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "AccountQuotaName": return Optional.ofNullable(clazz.cast(accountQuotaName())); case "Used": return Optional.ofNullable(clazz.cast(used())); case "Max": return Optional.ofNullable(clazz.cast(max())); default: return Optional.empty(); } }
/** * Marshall the given parameter object */ public void marshall(AccountQuota accountQuota, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(accountQuota, "accountQuota"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(accountQuota.accountQuotaName(), ACCOUNTQUOTANAME_BINDING); protocolMarshaller.marshall(accountQuota.used(), USED_BINDING); protocolMarshaller.marshall(accountQuota.max(), MAX_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }