@Override public CreateEventSubscriptionRequest build() { return new CreateEventSubscriptionRequest(this); } }
@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; }
SnsNoAuthorizationException, ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return createEventSubscription(CreateEventSubscriptionRequest.builder().applyMutation(createEventSubscriptionRequest) .build());
return createEventSubscription(CreateEventSubscriptionRequest.builder().applyMutation(createEventSubscriptionRequest) .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; }
return createEventSubscription(CreateEventSubscriptionRequest.builder().applyMutation(createEventSubscriptionRequest) .build());
@Override public CreateEventSubscriptionRequest build() { return new CreateEventSubscriptionRequest(this); }
@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; }
return createEventSubscription(CreateEventSubscriptionRequest.builder().applyMutation(createEventSubscriptionRequest) .build());
@Override public CreateEventSubscriptionRequest build() { return new CreateEventSubscriptionRequest(this); }
@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(); }
SnsNoAuthorizationException, ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return createEventSubscription(CreateEventSubscriptionRequest.builder().applyMutation(createEventSubscriptionRequest) .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(); }
SnsNoAuthorizationException, ResourceNotFoundException, AwsServiceException, SdkClientException, DatabaseMigrationException { return createEventSubscription(CreateEventSubscriptionRequest.builder().applyMutation(createEventSubscriptionRequest) .build());
@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()); }
/** * 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 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()); }
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(); } }