@Override public String toString() { return ToString.builder("CreateEventSubscriptionRequest").add("SubscriptionName", subscriptionName()) .add("SnsTopicArn", snsTopicArn()).add("SourceType", sourceType()).add("EventCategories", eventCategories()) .add("SourceIds", sourceIds()).add("Enabled", enabled()).add("Tags", tags()).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("CreateEventSubscriptionRequest").add("SubscriptionName", subscriptionName()) .add("SnsTopicArn", snsTopicArn()).add("SourceType", sourceType()).add("EventCategories", eventCategories()) .add("SourceIds", sourceIds()).add("Enabled", enabled()).add("Tags", tags()).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("CreateEventSubscriptionRequest").add("SubscriptionName", subscriptionName()) .add("SnsTopicArn", snsTopicArn()).add("SourceType", sourceType()).add("EventCategories", eventCategories()) .add("SourceIds", sourceIds()).add("Enabled", enabled()).add("Tags", tags()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(subscriptionName()); hashCode = 31 * hashCode + Objects.hashCode(snsTopicArn()); hashCode = 31 * hashCode + Objects.hashCode(sourceType()); hashCode = 31 * hashCode + Objects.hashCode(eventCategories()); hashCode = 31 * hashCode + Objects.hashCode(sourceIds()); hashCode = 31 * hashCode + Objects.hashCode(enabled()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(subscriptionName()); hashCode = 31 * hashCode + Objects.hashCode(snsTopicArn()); hashCode = 31 * hashCode + Objects.hashCode(sourceType()); hashCode = 31 * hashCode + Objects.hashCode(eventCategories()); hashCode = 31 * hashCode + Objects.hashCode(sourceIds()); hashCode = 31 * hashCode + Objects.hashCode(enabled()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(subscriptionName()); hashCode = 31 * hashCode + Objects.hashCode(snsTopicArn()); hashCode = 31 * hashCode + Objects.hashCode(sourceType()); hashCode = 31 * hashCode + Objects.hashCode(eventCategories()); hashCode = 31 * hashCode + Objects.hashCode(sourceIds()); hashCode = 31 * hashCode + Objects.hashCode(enabled()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "SubscriptionName": return Optional.ofNullable(clazz.cast(subscriptionName())); case "SnsTopicArn": return Optional.ofNullable(clazz.cast(snsTopicArn())); case "SourceType": return Optional.ofNullable(clazz.cast(sourceType())); case "EventCategories": return Optional.ofNullable(clazz.cast(eventCategories())); case "SourceIds": return Optional.ofNullable(clazz.cast(sourceIds())); case "Enabled": return Optional.ofNullable(clazz.cast(enabled())); 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 "SubscriptionName": return Optional.ofNullable(clazz.cast(subscriptionName())); case "SnsTopicArn": return Optional.ofNullable(clazz.cast(snsTopicArn())); case "SourceType": return Optional.ofNullable(clazz.cast(sourceType())); case "EventCategories": return Optional.ofNullable(clazz.cast(eventCategories())); case "SourceIds": return Optional.ofNullable(clazz.cast(sourceIds())); case "Enabled": return Optional.ofNullable(clazz.cast(enabled())); 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 "SubscriptionName": return Optional.ofNullable(clazz.cast(subscriptionName())); case "SnsTopicArn": return Optional.ofNullable(clazz.cast(snsTopicArn())); case "SourceType": return Optional.ofNullable(clazz.cast(sourceType())); case "EventCategories": return Optional.ofNullable(clazz.cast(eventCategories())); case "SourceIds": return Optional.ofNullable(clazz.cast(sourceIds())); case "Enabled": return Optional.ofNullable(clazz.cast(enabled())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateEventSubscriptionRequest)) { return false; } CreateEventSubscriptionRequest other = (CreateEventSubscriptionRequest) obj; return Objects.equals(subscriptionName(), other.subscriptionName()) && Objects.equals(snsTopicArn(), other.snsTopicArn()) && Objects.equals(sourceType(), other.sourceType()) && Objects.equals(eventCategories(), other.eventCategories()) && Objects.equals(sourceIds(), other.sourceIds()) && Objects.equals(enabled(), other.enabled()) && Objects.equals(tags(), other.tags()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateEventSubscriptionRequest)) { return false; } CreateEventSubscriptionRequest other = (CreateEventSubscriptionRequest) obj; return Objects.equals(subscriptionName(), other.subscriptionName()) && Objects.equals(snsTopicArn(), other.snsTopicArn()) && Objects.equals(sourceType(), other.sourceType()) && Objects.equals(eventCategories(), other.eventCategories()) && Objects.equals(sourceIds(), other.sourceIds()) && Objects.equals(enabled(), other.enabled()) && Objects.equals(tags(), other.tags()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateEventSubscriptionRequest)) { return false; } CreateEventSubscriptionRequest other = (CreateEventSubscriptionRequest) obj; return Objects.equals(subscriptionName(), other.subscriptionName()) && Objects.equals(snsTopicArn(), other.snsTopicArn()) && Objects.equals(sourceType(), other.sourceType()) && Objects.equals(eventCategories(), other.eventCategories()) && Objects.equals(sourceIds(), other.sourceIds()) && Objects.equals(enabled(), other.enabled()) && Objects.equals(tags(), other.tags()); }
/** * Marshall the given parameter object */ public void marshall(CreateEventSubscriptionRequest createEventSubscriptionRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(createEventSubscriptionRequest, "createEventSubscriptionRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(createEventSubscriptionRequest.subscriptionName(), SUBSCRIPTIONNAME_BINDING); protocolMarshaller.marshall(createEventSubscriptionRequest.snsTopicArn(), SNSTOPICARN_BINDING); protocolMarshaller.marshall(createEventSubscriptionRequest.sourceType(), SOURCETYPE_BINDING); protocolMarshaller.marshall(createEventSubscriptionRequest.eventCategories(), EVENTCATEGORIES_BINDING); protocolMarshaller.marshall(createEventSubscriptionRequest.sourceIds(), SOURCEIDS_BINDING); protocolMarshaller.marshall(createEventSubscriptionRequest.enabled(), ENABLED_BINDING); protocolMarshaller.marshall(createEventSubscriptionRequest.tags(), TAGS_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }