All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ssmincidents.model.ReplicationSet Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Systems Manager Incident Manager module holds the client classes that are used for communicating with AWS Systems Manager Incident Manager Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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.ssmincidents.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The set of Amazon Web Services Region that your Incident Manager data will be replicated to and the KMS key used to * encrypt the data. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReplicationSet implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) of the replication set. *

*/ private String arn; /** *

* Details about who created the replication set. *

*/ private String createdBy; /** *

* When the replication set was created. *

*/ private java.util.Date createdTime; /** *

* Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you * can't delete the last Amazon Web Services Region in the replication set. *

*/ private Boolean deletionProtected; /** *

* Who last modified the replication set. *

*/ private String lastModifiedBy; /** *

* When the replication set was last updated. *

*/ private java.util.Date lastModifiedTime; /** *

* The map between each Amazon Web Services Region in your replication set and the KMS key that's used to encrypt * the data in that Region. *

*/ private java.util.Map regionMap; /** *

* The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. *

*/ private String status; /** *

* The Amazon Resource Name (ARN) of the replication set. *

* * @param arn * The Amazon Resource Name (ARN) of the replication set. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the replication set. *

* * @return The Amazon Resource Name (ARN) of the replication set. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the replication set. *

* * @param arn * The Amazon Resource Name (ARN) of the replication set. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet withArn(String arn) { setArn(arn); return this; } /** *

* Details about who created the replication set. *

* * @param createdBy * Details about who created the replication set. */ public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } /** *

* Details about who created the replication set. *

* * @return Details about who created the replication set. */ public String getCreatedBy() { return this.createdBy; } /** *

* Details about who created the replication set. *

* * @param createdBy * Details about who created the replication set. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet withCreatedBy(String createdBy) { setCreatedBy(createdBy); return this; } /** *

* When the replication set was created. *

* * @param createdTime * When the replication set was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* When the replication set was created. *

* * @return When the replication set was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* When the replication set was created. *

* * @param createdTime * When the replication set was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** *

* Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you * can't delete the last Amazon Web Services Region in the replication set. *

* * @param deletionProtected * Determines if the replication set deletion protection is enabled or not. If deletion protection is * enabled, you can't delete the last Amazon Web Services Region in the replication set. */ public void setDeletionProtected(Boolean deletionProtected) { this.deletionProtected = deletionProtected; } /** *

* Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you * can't delete the last Amazon Web Services Region in the replication set. *

* * @return Determines if the replication set deletion protection is enabled or not. If deletion protection is * enabled, you can't delete the last Amazon Web Services Region in the replication set. */ public Boolean getDeletionProtected() { return this.deletionProtected; } /** *

* Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you * can't delete the last Amazon Web Services Region in the replication set. *

* * @param deletionProtected * Determines if the replication set deletion protection is enabled or not. If deletion protection is * enabled, you can't delete the last Amazon Web Services Region in the replication set. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet withDeletionProtected(Boolean deletionProtected) { setDeletionProtected(deletionProtected); return this; } /** *

* Determines if the replication set deletion protection is enabled or not. If deletion protection is enabled, you * can't delete the last Amazon Web Services Region in the replication set. *

* * @return Determines if the replication set deletion protection is enabled or not. If deletion protection is * enabled, you can't delete the last Amazon Web Services Region in the replication set. */ public Boolean isDeletionProtected() { return this.deletionProtected; } /** *

* Who last modified the replication set. *

* * @param lastModifiedBy * Who last modified the replication set. */ public void setLastModifiedBy(String lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } /** *

* Who last modified the replication set. *

* * @return Who last modified the replication set. */ public String getLastModifiedBy() { return this.lastModifiedBy; } /** *

* Who last modified the replication set. *

* * @param lastModifiedBy * Who last modified the replication set. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet withLastModifiedBy(String lastModifiedBy) { setLastModifiedBy(lastModifiedBy); return this; } /** *

* When the replication set was last updated. *

* * @param lastModifiedTime * When the replication set was last updated. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* When the replication set was last updated. *

* * @return When the replication set was last updated. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* When the replication set was last updated. *

* * @param lastModifiedTime * When the replication set was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** *

* The map between each Amazon Web Services Region in your replication set and the KMS key that's used to encrypt * the data in that Region. *

* * @return The map between each Amazon Web Services Region in your replication set and the KMS key that's used to * encrypt the data in that Region. */ public java.util.Map getRegionMap() { return regionMap; } /** *

* The map between each Amazon Web Services Region in your replication set and the KMS key that's used to encrypt * the data in that Region. *

* * @param regionMap * The map between each Amazon Web Services Region in your replication set and the KMS key that's used to * encrypt the data in that Region. */ public void setRegionMap(java.util.Map regionMap) { this.regionMap = regionMap; } /** *

* The map between each Amazon Web Services Region in your replication set and the KMS key that's used to encrypt * the data in that Region. *

* * @param regionMap * The map between each Amazon Web Services Region in your replication set and the KMS key that's used to * encrypt the data in that Region. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet withRegionMap(java.util.Map regionMap) { setRegionMap(regionMap); return this; } /** * Add a single RegionMap entry * * @see ReplicationSet#withRegionMap * @returns a reference to this object so that method calls can be chained together. */ public ReplicationSet addRegionMapEntry(String key, RegionInfo value) { if (null == this.regionMap) { this.regionMap = new java.util.HashMap(); } if (this.regionMap.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.regionMap.put(key, value); return this; } /** * Removes all the entries added into RegionMap. * * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSet clearRegionMapEntries() { this.regionMap = null; return this; } /** *

* The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. *

* * @param status * The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. * @see ReplicationSetStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. *

* * @return The status of the replication set. If the replication set is still pending, you can't use Incident * Manager functionality. * @see ReplicationSetStatus */ public String getStatus() { return this.status; } /** *

* The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. *

* * @param status * The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationSetStatus */ public ReplicationSet withStatus(String status) { setStatus(status); return this; } /** *

* The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. *

* * @param status * The status of the replication set. If the replication set is still pending, you can't use Incident Manager * functionality. * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationSetStatus */ public ReplicationSet withStatus(ReplicationSetStatus status) { this.status = status.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getDeletionProtected() != null) sb.append("DeletionProtected: ").append(getDeletionProtected()).append(","); if (getLastModifiedBy() != null) sb.append("LastModifiedBy: ").append(getLastModifiedBy()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getRegionMap() != null) sb.append("RegionMap: ").append(getRegionMap()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicationSet == false) return false; ReplicationSet other = (ReplicationSet) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getDeletionProtected() == null ^ this.getDeletionProtected() == null) return false; if (other.getDeletionProtected() != null && other.getDeletionProtected().equals(this.getDeletionProtected()) == false) return false; if (other.getLastModifiedBy() == null ^ this.getLastModifiedBy() == null) return false; if (other.getLastModifiedBy() != null && other.getLastModifiedBy().equals(this.getLastModifiedBy()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getRegionMap() == null ^ this.getRegionMap() == null) return false; if (other.getRegionMap() != null && other.getRegionMap().equals(this.getRegionMap()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getDeletionProtected() == null) ? 0 : getDeletionProtected().hashCode()); hashCode = prime * hashCode + ((getLastModifiedBy() == null) ? 0 : getLastModifiedBy().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getRegionMap() == null) ? 0 : getRegionMap().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public ReplicationSet clone() { try { return (ReplicationSet) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.ssmincidents.model.transform.ReplicationSetMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy