com.amazonaws.services.cloudtrail.model.UpdateEventDataStoreResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cloudtrail Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.cloudtrail.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateEventDataStoreResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The ARN of the event data store.
*
*/
private String eventDataStoreArn;
/**
*
* The name of the event data store.
*
*/
private String name;
/**
*
* The status of an event data store.
*
*/
private String status;
/**
*
* The advanced event selectors that are applied to the event data store.
*
*/
private com.amazonaws.internal.SdkInternalList advancedEventSelectors;
/**
*
* Indicates whether the event data store includes events from all Regions, or only from the Region in which it was
* created.
*
*/
private Boolean multiRegionEnabled;
/**
*
* Indicates whether an event data store is collecting logged events for an organization in Organizations.
*
*/
private Boolean organizationEnabled;
/**
*
* The retention period, in days.
*
*/
private Integer retentionPeriod;
/**
*
* Indicates whether termination protection is enabled for the event data store.
*
*/
private Boolean terminationProtectionEnabled;
/**
*
* The timestamp that shows when an event data store was first created.
*
*/
private java.util.Date createdTimestamp;
/**
*
* The timestamp that shows when the event data store was last updated. UpdatedTimestamp
is always
* either the same or newer than the time shown in CreatedTimestamp
.
*
*/
private java.util.Date updatedTimestamp;
/**
*
* Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to
* a KMS key in the following format.
*
*
* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
*
*/
private String kmsKeyId;
/**
*
* The billing mode for the event data store.
*
*/
private String billingMode;
/**
*
* Indicates the Lake
* query federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
*
*/
private String federationStatus;
/**
*
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the
* federated event data store.
*
*/
private String federationRoleArn;
/**
*
* The ARN of the event data store.
*
*
* @param eventDataStoreArn
* The ARN of the event data store.
*/
public void setEventDataStoreArn(String eventDataStoreArn) {
this.eventDataStoreArn = eventDataStoreArn;
}
/**
*
* The ARN of the event data store.
*
*
* @return The ARN of the event data store.
*/
public String getEventDataStoreArn() {
return this.eventDataStoreArn;
}
/**
*
* The ARN of the event data store.
*
*
* @param eventDataStoreArn
* The ARN of the event data store.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withEventDataStoreArn(String eventDataStoreArn) {
setEventDataStoreArn(eventDataStoreArn);
return this;
}
/**
*
* The name of the event data store.
*
*
* @param name
* The name of the event data store.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name of the event data store.
*
*
* @return The name of the event data store.
*/
public String getName() {
return this.name;
}
/**
*
* The name of the event data store.
*
*
* @param name
* The name of the event data store.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withName(String name) {
setName(name);
return this;
}
/**
*
* The status of an event data store.
*
*
* @param status
* The status of an event data store.
* @see EventDataStoreStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of an event data store.
*
*
* @return The status of an event data store.
* @see EventDataStoreStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of an event data store.
*
*
* @param status
* The status of an event data store.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EventDataStoreStatus
*/
public UpdateEventDataStoreResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of an event data store.
*
*
* @param status
* The status of an event data store.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EventDataStoreStatus
*/
public UpdateEventDataStoreResult withStatus(EventDataStoreStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The advanced event selectors that are applied to the event data store.
*
*
* @return The advanced event selectors that are applied to the event data store.
*/
public java.util.List getAdvancedEventSelectors() {
if (advancedEventSelectors == null) {
advancedEventSelectors = new com.amazonaws.internal.SdkInternalList();
}
return advancedEventSelectors;
}
/**
*
* The advanced event selectors that are applied to the event data store.
*
*
* @param advancedEventSelectors
* The advanced event selectors that are applied to the event data store.
*/
public void setAdvancedEventSelectors(java.util.Collection advancedEventSelectors) {
if (advancedEventSelectors == null) {
this.advancedEventSelectors = null;
return;
}
this.advancedEventSelectors = new com.amazonaws.internal.SdkInternalList(advancedEventSelectors);
}
/**
*
* The advanced event selectors that are applied to the event data store.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAdvancedEventSelectors(java.util.Collection)} or
* {@link #withAdvancedEventSelectors(java.util.Collection)} if you want to override the existing values.
*
*
* @param advancedEventSelectors
* The advanced event selectors that are applied to the event data store.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withAdvancedEventSelectors(AdvancedEventSelector... advancedEventSelectors) {
if (this.advancedEventSelectors == null) {
setAdvancedEventSelectors(new com.amazonaws.internal.SdkInternalList(advancedEventSelectors.length));
}
for (AdvancedEventSelector ele : advancedEventSelectors) {
this.advancedEventSelectors.add(ele);
}
return this;
}
/**
*
* The advanced event selectors that are applied to the event data store.
*
*
* @param advancedEventSelectors
* The advanced event selectors that are applied to the event data store.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withAdvancedEventSelectors(java.util.Collection advancedEventSelectors) {
setAdvancedEventSelectors(advancedEventSelectors);
return this;
}
/**
*
* Indicates whether the event data store includes events from all Regions, or only from the Region in which it was
* created.
*
*
* @param multiRegionEnabled
* Indicates whether the event data store includes events from all Regions, or only from the Region in which
* it was created.
*/
public void setMultiRegionEnabled(Boolean multiRegionEnabled) {
this.multiRegionEnabled = multiRegionEnabled;
}
/**
*
* Indicates whether the event data store includes events from all Regions, or only from the Region in which it was
* created.
*
*
* @return Indicates whether the event data store includes events from all Regions, or only from the Region in which
* it was created.
*/
public Boolean getMultiRegionEnabled() {
return this.multiRegionEnabled;
}
/**
*
* Indicates whether the event data store includes events from all Regions, or only from the Region in which it was
* created.
*
*
* @param multiRegionEnabled
* Indicates whether the event data store includes events from all Regions, or only from the Region in which
* it was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withMultiRegionEnabled(Boolean multiRegionEnabled) {
setMultiRegionEnabled(multiRegionEnabled);
return this;
}
/**
*
* Indicates whether the event data store includes events from all Regions, or only from the Region in which it was
* created.
*
*
* @return Indicates whether the event data store includes events from all Regions, or only from the Region in which
* it was created.
*/
public Boolean isMultiRegionEnabled() {
return this.multiRegionEnabled;
}
/**
*
* Indicates whether an event data store is collecting logged events for an organization in Organizations.
*
*
* @param organizationEnabled
* Indicates whether an event data store is collecting logged events for an organization in Organizations.
*/
public void setOrganizationEnabled(Boolean organizationEnabled) {
this.organizationEnabled = organizationEnabled;
}
/**
*
* Indicates whether an event data store is collecting logged events for an organization in Organizations.
*
*
* @return Indicates whether an event data store is collecting logged events for an organization in Organizations.
*/
public Boolean getOrganizationEnabled() {
return this.organizationEnabled;
}
/**
*
* Indicates whether an event data store is collecting logged events for an organization in Organizations.
*
*
* @param organizationEnabled
* Indicates whether an event data store is collecting logged events for an organization in Organizations.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withOrganizationEnabled(Boolean organizationEnabled) {
setOrganizationEnabled(organizationEnabled);
return this;
}
/**
*
* Indicates whether an event data store is collecting logged events for an organization in Organizations.
*
*
* @return Indicates whether an event data store is collecting logged events for an organization in Organizations.
*/
public Boolean isOrganizationEnabled() {
return this.organizationEnabled;
}
/**
*
* The retention period, in days.
*
*
* @param retentionPeriod
* The retention period, in days.
*/
public void setRetentionPeriod(Integer retentionPeriod) {
this.retentionPeriod = retentionPeriod;
}
/**
*
* The retention period, in days.
*
*
* @return The retention period, in days.
*/
public Integer getRetentionPeriod() {
return this.retentionPeriod;
}
/**
*
* The retention period, in days.
*
*
* @param retentionPeriod
* The retention period, in days.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withRetentionPeriod(Integer retentionPeriod) {
setRetentionPeriod(retentionPeriod);
return this;
}
/**
*
* Indicates whether termination protection is enabled for the event data store.
*
*
* @param terminationProtectionEnabled
* Indicates whether termination protection is enabled for the event data store.
*/
public void setTerminationProtectionEnabled(Boolean terminationProtectionEnabled) {
this.terminationProtectionEnabled = terminationProtectionEnabled;
}
/**
*
* Indicates whether termination protection is enabled for the event data store.
*
*
* @return Indicates whether termination protection is enabled for the event data store.
*/
public Boolean getTerminationProtectionEnabled() {
return this.terminationProtectionEnabled;
}
/**
*
* Indicates whether termination protection is enabled for the event data store.
*
*
* @param terminationProtectionEnabled
* Indicates whether termination protection is enabled for the event data store.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withTerminationProtectionEnabled(Boolean terminationProtectionEnabled) {
setTerminationProtectionEnabled(terminationProtectionEnabled);
return this;
}
/**
*
* Indicates whether termination protection is enabled for the event data store.
*
*
* @return Indicates whether termination protection is enabled for the event data store.
*/
public Boolean isTerminationProtectionEnabled() {
return this.terminationProtectionEnabled;
}
/**
*
* The timestamp that shows when an event data store was first created.
*
*
* @param createdTimestamp
* The timestamp that shows when an event data store was first created.
*/
public void setCreatedTimestamp(java.util.Date createdTimestamp) {
this.createdTimestamp = createdTimestamp;
}
/**
*
* The timestamp that shows when an event data store was first created.
*
*
* @return The timestamp that shows when an event data store was first created.
*/
public java.util.Date getCreatedTimestamp() {
return this.createdTimestamp;
}
/**
*
* The timestamp that shows when an event data store was first created.
*
*
* @param createdTimestamp
* The timestamp that shows when an event data store was first created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withCreatedTimestamp(java.util.Date createdTimestamp) {
setCreatedTimestamp(createdTimestamp);
return this;
}
/**
*
* The timestamp that shows when the event data store was last updated. UpdatedTimestamp
is always
* either the same or newer than the time shown in CreatedTimestamp
.
*
*
* @param updatedTimestamp
* The timestamp that shows when the event data store was last updated. UpdatedTimestamp
is
* always either the same or newer than the time shown in CreatedTimestamp
.
*/
public void setUpdatedTimestamp(java.util.Date updatedTimestamp) {
this.updatedTimestamp = updatedTimestamp;
}
/**
*
* The timestamp that shows when the event data store was last updated. UpdatedTimestamp
is always
* either the same or newer than the time shown in CreatedTimestamp
.
*
*
* @return The timestamp that shows when the event data store was last updated. UpdatedTimestamp
is
* always either the same or newer than the time shown in CreatedTimestamp
.
*/
public java.util.Date getUpdatedTimestamp() {
return this.updatedTimestamp;
}
/**
*
* The timestamp that shows when the event data store was last updated. UpdatedTimestamp
is always
* either the same or newer than the time shown in CreatedTimestamp
.
*
*
* @param updatedTimestamp
* The timestamp that shows when the event data store was last updated. UpdatedTimestamp
is
* always either the same or newer than the time shown in CreatedTimestamp
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withUpdatedTimestamp(java.util.Date updatedTimestamp) {
setUpdatedTimestamp(updatedTimestamp);
return this;
}
/**
*
* Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to
* a KMS key in the following format.
*
*
* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
*
*
* @param kmsKeyId
* Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified
* ARN to a KMS key in the following format.
*
* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to
* a KMS key in the following format.
*
*
* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
*
*
* @return Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified
* ARN to a KMS key in the following format.
*
* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to
* a KMS key in the following format.
*
*
* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
*
*
* @param kmsKeyId
* Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified
* ARN to a KMS key in the following format.
*
* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The billing mode for the event data store.
*
*
* @param billingMode
* The billing mode for the event data store.
* @see BillingMode
*/
public void setBillingMode(String billingMode) {
this.billingMode = billingMode;
}
/**
*
* The billing mode for the event data store.
*
*
* @return The billing mode for the event data store.
* @see BillingMode
*/
public String getBillingMode() {
return this.billingMode;
}
/**
*
* The billing mode for the event data store.
*
*
* @param billingMode
* The billing mode for the event data store.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BillingMode
*/
public UpdateEventDataStoreResult withBillingMode(String billingMode) {
setBillingMode(billingMode);
return this;
}
/**
*
* The billing mode for the event data store.
*
*
* @param billingMode
* The billing mode for the event data store.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BillingMode
*/
public UpdateEventDataStoreResult withBillingMode(BillingMode billingMode) {
this.billingMode = billingMode.toString();
return this;
}
/**
*
* Indicates the Lake
* query federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
*
*
* @param federationStatus
* Indicates the Lake query
* federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
* @see FederationStatus
*/
public void setFederationStatus(String federationStatus) {
this.federationStatus = federationStatus;
}
/**
*
* Indicates the Lake
* query federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
*
*
* @return Indicates the Lake query
* federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
* @see FederationStatus
*/
public String getFederationStatus() {
return this.federationStatus;
}
/**
*
* Indicates the Lake
* query federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
*
*
* @param federationStatus
* Indicates the Lake query
* federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FederationStatus
*/
public UpdateEventDataStoreResult withFederationStatus(String federationStatus) {
setFederationStatus(federationStatus);
return this;
}
/**
*
* Indicates the Lake
* query federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
*
*
* @param federationStatus
* Indicates the Lake query
* federation status. The status is ENABLED
if Lake query federation is enabled, or
* DISABLED
if Lake query federation is disabled. You cannot delete an event data store if the
* FederationStatus
is ENABLED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FederationStatus
*/
public UpdateEventDataStoreResult withFederationStatus(FederationStatus federationStatus) {
this.federationStatus = federationStatus.toString();
return this;
}
/**
*
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the
* federated event data store.
*
*
* @param federationRoleArn
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources
* for the federated event data store.
*/
public void setFederationRoleArn(String federationRoleArn) {
this.federationRoleArn = federationRoleArn;
}
/**
*
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the
* federated event data store.
*
*
* @return If Lake query federation is enabled, provides the ARN of the federation role used to access the resources
* for the federated event data store.
*/
public String getFederationRoleArn() {
return this.federationRoleArn;
}
/**
*
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources for the
* federated event data store.
*
*
* @param federationRoleArn
* If Lake query federation is enabled, provides the ARN of the federation role used to access the resources
* for the federated event data store.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateEventDataStoreResult withFederationRoleArn(String federationRoleArn) {
setFederationRoleArn(federationRoleArn);
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getEventDataStoreArn() != null)
sb.append("EventDataStoreArn: ").append(getEventDataStoreArn()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getAdvancedEventSelectors() != null)
sb.append("AdvancedEventSelectors: ").append(getAdvancedEventSelectors()).append(",");
if (getMultiRegionEnabled() != null)
sb.append("MultiRegionEnabled: ").append(getMultiRegionEnabled()).append(",");
if (getOrganizationEnabled() != null)
sb.append("OrganizationEnabled: ").append(getOrganizationEnabled()).append(",");
if (getRetentionPeriod() != null)
sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(",");
if (getTerminationProtectionEnabled() != null)
sb.append("TerminationProtectionEnabled: ").append(getTerminationProtectionEnabled()).append(",");
if (getCreatedTimestamp() != null)
sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(",");
if (getUpdatedTimestamp() != null)
sb.append("UpdatedTimestamp: ").append(getUpdatedTimestamp()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getBillingMode() != null)
sb.append("BillingMode: ").append(getBillingMode()).append(",");
if (getFederationStatus() != null)
sb.append("FederationStatus: ").append(getFederationStatus()).append(",");
if (getFederationRoleArn() != null)
sb.append("FederationRoleArn: ").append(getFederationRoleArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateEventDataStoreResult == false)
return false;
UpdateEventDataStoreResult other = (UpdateEventDataStoreResult) obj;
if (other.getEventDataStoreArn() == null ^ this.getEventDataStoreArn() == null)
return false;
if (other.getEventDataStoreArn() != null && other.getEventDataStoreArn().equals(this.getEventDataStoreArn()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getAdvancedEventSelectors() == null ^ this.getAdvancedEventSelectors() == null)
return false;
if (other.getAdvancedEventSelectors() != null && other.getAdvancedEventSelectors().equals(this.getAdvancedEventSelectors()) == false)
return false;
if (other.getMultiRegionEnabled() == null ^ this.getMultiRegionEnabled() == null)
return false;
if (other.getMultiRegionEnabled() != null && other.getMultiRegionEnabled().equals(this.getMultiRegionEnabled()) == false)
return false;
if (other.getOrganizationEnabled() == null ^ this.getOrganizationEnabled() == null)
return false;
if (other.getOrganizationEnabled() != null && other.getOrganizationEnabled().equals(this.getOrganizationEnabled()) == false)
return false;
if (other.getRetentionPeriod() == null ^ this.getRetentionPeriod() == null)
return false;
if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false)
return false;
if (other.getTerminationProtectionEnabled() == null ^ this.getTerminationProtectionEnabled() == null)
return false;
if (other.getTerminationProtectionEnabled() != null && other.getTerminationProtectionEnabled().equals(this.getTerminationProtectionEnabled()) == false)
return false;
if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null)
return false;
if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false)
return false;
if (other.getUpdatedTimestamp() == null ^ this.getUpdatedTimestamp() == null)
return false;
if (other.getUpdatedTimestamp() != null && other.getUpdatedTimestamp().equals(this.getUpdatedTimestamp()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getBillingMode() == null ^ this.getBillingMode() == null)
return false;
if (other.getBillingMode() != null && other.getBillingMode().equals(this.getBillingMode()) == false)
return false;
if (other.getFederationStatus() == null ^ this.getFederationStatus() == null)
return false;
if (other.getFederationStatus() != null && other.getFederationStatus().equals(this.getFederationStatus()) == false)
return false;
if (other.getFederationRoleArn() == null ^ this.getFederationRoleArn() == null)
return false;
if (other.getFederationRoleArn() != null && other.getFederationRoleArn().equals(this.getFederationRoleArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEventDataStoreArn() == null) ? 0 : getEventDataStoreArn().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getAdvancedEventSelectors() == null) ? 0 : getAdvancedEventSelectors().hashCode());
hashCode = prime * hashCode + ((getMultiRegionEnabled() == null) ? 0 : getMultiRegionEnabled().hashCode());
hashCode = prime * hashCode + ((getOrganizationEnabled() == null) ? 0 : getOrganizationEnabled().hashCode());
hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode());
hashCode = prime * hashCode + ((getTerminationProtectionEnabled() == null) ? 0 : getTerminationProtectionEnabled().hashCode());
hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode());
hashCode = prime * hashCode + ((getUpdatedTimestamp() == null) ? 0 : getUpdatedTimestamp().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getBillingMode() == null) ? 0 : getBillingMode().hashCode());
hashCode = prime * hashCode + ((getFederationStatus() == null) ? 0 : getFederationStatus().hashCode());
hashCode = prime * hashCode + ((getFederationRoleArn() == null) ? 0 : getFederationRoleArn().hashCode());
return hashCode;
}
@Override
public UpdateEventDataStoreResult clone() {
try {
return (UpdateEventDataStoreResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}