/* * Copyright 2018-2023 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.drs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The ARN of the Source Network. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SourceNetwork implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the Source Network. *
*/ private String arn; /** ** CloudFormation stack name that was deployed for recovering the Source Network. *
*/ private String cfnStackName; /** ** An object containing information regarding the last recovery of the Source Network. *
*/ private RecoveryLifeCycle lastRecovery; /** ** ID of the recovered VPC following Source Network recovery. *
*/ private String launchedVpcID; /** ** Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. (b) * IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated successfully and * is being synchronized for changes. (d) ERROR - Source Network replication has failed *
*/ private String replicationStatus; /** ** Error details in case Source Network replication status is ERROR. *
*/ private String replicationStatusDetails; /** ** Account ID containing the VPC protected by the Source Network. *
*/ private String sourceAccountID; /** ** Source Network ID. *
*/ private String sourceNetworkID; /** ** Region containing the VPC protected by the Source Network. *
*/ private String sourceRegion; /** ** VPC ID protected by the Source Network. *
*/ private String sourceVpcID; /** ** A list of tags associated with the Source Network. *
*/ private java.util.Map* The ARN of the Source Network. *
* * @param arn * The ARN of the Source Network. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the Source Network. *
* * @return The ARN of the Source Network. */ public String getArn() { return this.arn; } /** ** The ARN of the Source Network. *
* * @param arn * The ARN of the Source Network. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withArn(String arn) { setArn(arn); return this; } /** ** CloudFormation stack name that was deployed for recovering the Source Network. *
* * @param cfnStackName * CloudFormation stack name that was deployed for recovering the Source Network. */ public void setCfnStackName(String cfnStackName) { this.cfnStackName = cfnStackName; } /** ** CloudFormation stack name that was deployed for recovering the Source Network. *
* * @return CloudFormation stack name that was deployed for recovering the Source Network. */ public String getCfnStackName() { return this.cfnStackName; } /** ** CloudFormation stack name that was deployed for recovering the Source Network. *
* * @param cfnStackName * CloudFormation stack name that was deployed for recovering the Source Network. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withCfnStackName(String cfnStackName) { setCfnStackName(cfnStackName); return this; } /** ** An object containing information regarding the last recovery of the Source Network. *
* * @param lastRecovery * An object containing information regarding the last recovery of the Source Network. */ public void setLastRecovery(RecoveryLifeCycle lastRecovery) { this.lastRecovery = lastRecovery; } /** ** An object containing information regarding the last recovery of the Source Network. *
* * @return An object containing information regarding the last recovery of the Source Network. */ public RecoveryLifeCycle getLastRecovery() { return this.lastRecovery; } /** ** An object containing information regarding the last recovery of the Source Network. *
* * @param lastRecovery * An object containing information regarding the last recovery of the Source Network. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withLastRecovery(RecoveryLifeCycle lastRecovery) { setLastRecovery(lastRecovery); return this; } /** ** ID of the recovered VPC following Source Network recovery. *
* * @param launchedVpcID * ID of the recovered VPC following Source Network recovery. */ public void setLaunchedVpcID(String launchedVpcID) { this.launchedVpcID = launchedVpcID; } /** ** ID of the recovered VPC following Source Network recovery. *
* * @return ID of the recovered VPC following Source Network recovery. */ public String getLaunchedVpcID() { return this.launchedVpcID; } /** ** ID of the recovered VPC following Source Network recovery. *
* * @param launchedVpcID * ID of the recovered VPC following Source Network recovery. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withLaunchedVpcID(String launchedVpcID) { setLaunchedVpcID(launchedVpcID); return this; } /** ** Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. (b) * IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated successfully and * is being synchronized for changes. (d) ERROR - Source Network replication has failed *
* * @param replicationStatus * Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. * (b) IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated * successfully and is being synchronized for changes. (d) ERROR - Source Network replication has failed * @see ReplicationStatus */ public void setReplicationStatus(String replicationStatus) { this.replicationStatus = replicationStatus; } /** ** Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. (b) * IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated successfully and * is being synchronized for changes. (d) ERROR - Source Network replication has failed *
* * @return Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. * (b) IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated * successfully and is being synchronized for changes. (d) ERROR - Source Network replication has failed * @see ReplicationStatus */ public String getReplicationStatus() { return this.replicationStatus; } /** ** Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. (b) * IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated successfully and * is being synchronized for changes. (d) ERROR - Source Network replication has failed *
* * @param replicationStatus * Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. * (b) IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated * successfully and is being synchronized for changes. (d) ERROR - Source Network replication has failed * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationStatus */ public SourceNetwork withReplicationStatus(String replicationStatus) { setReplicationStatus(replicationStatus); return this; } /** ** Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. (b) * IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated successfully and * is being synchronized for changes. (d) ERROR - Source Network replication has failed *
* * @param replicationStatus * Status of Source Network Replication. Possible values: (a) STOPPED - Source Network is not replicating. * (b) IN_PROGRESS - Source Network is being replicated. (c) PROTECTED - Source Network was replicated * successfully and is being synchronized for changes. (d) ERROR - Source Network replication has failed * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationStatus */ public SourceNetwork withReplicationStatus(ReplicationStatus replicationStatus) { this.replicationStatus = replicationStatus.toString(); return this; } /** ** Error details in case Source Network replication status is ERROR. *
* * @param replicationStatusDetails * Error details in case Source Network replication status is ERROR. */ public void setReplicationStatusDetails(String replicationStatusDetails) { this.replicationStatusDetails = replicationStatusDetails; } /** ** Error details in case Source Network replication status is ERROR. *
* * @return Error details in case Source Network replication status is ERROR. */ public String getReplicationStatusDetails() { return this.replicationStatusDetails; } /** ** Error details in case Source Network replication status is ERROR. *
* * @param replicationStatusDetails * Error details in case Source Network replication status is ERROR. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withReplicationStatusDetails(String replicationStatusDetails) { setReplicationStatusDetails(replicationStatusDetails); return this; } /** ** Account ID containing the VPC protected by the Source Network. *
* * @param sourceAccountID * Account ID containing the VPC protected by the Source Network. */ public void setSourceAccountID(String sourceAccountID) { this.sourceAccountID = sourceAccountID; } /** ** Account ID containing the VPC protected by the Source Network. *
* * @return Account ID containing the VPC protected by the Source Network. */ public String getSourceAccountID() { return this.sourceAccountID; } /** ** Account ID containing the VPC protected by the Source Network. *
* * @param sourceAccountID * Account ID containing the VPC protected by the Source Network. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withSourceAccountID(String sourceAccountID) { setSourceAccountID(sourceAccountID); return this; } /** ** Source Network ID. *
* * @param sourceNetworkID * Source Network ID. */ public void setSourceNetworkID(String sourceNetworkID) { this.sourceNetworkID = sourceNetworkID; } /** ** Source Network ID. *
* * @return Source Network ID. */ public String getSourceNetworkID() { return this.sourceNetworkID; } /** ** Source Network ID. *
* * @param sourceNetworkID * Source Network ID. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withSourceNetworkID(String sourceNetworkID) { setSourceNetworkID(sourceNetworkID); return this; } /** ** Region containing the VPC protected by the Source Network. *
* * @param sourceRegion * Region containing the VPC protected by the Source Network. */ public void setSourceRegion(String sourceRegion) { this.sourceRegion = sourceRegion; } /** ** Region containing the VPC protected by the Source Network. *
* * @return Region containing the VPC protected by the Source Network. */ public String getSourceRegion() { return this.sourceRegion; } /** ** Region containing the VPC protected by the Source Network. *
* * @param sourceRegion * Region containing the VPC protected by the Source Network. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withSourceRegion(String sourceRegion) { setSourceRegion(sourceRegion); return this; } /** ** VPC ID protected by the Source Network. *
* * @param sourceVpcID * VPC ID protected by the Source Network. */ public void setSourceVpcID(String sourceVpcID) { this.sourceVpcID = sourceVpcID; } /** ** VPC ID protected by the Source Network. *
* * @return VPC ID protected by the Source Network. */ public String getSourceVpcID() { return this.sourceVpcID; } /** ** VPC ID protected by the Source Network. *
* * @param sourceVpcID * VPC ID protected by the Source Network. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withSourceVpcID(String sourceVpcID) { setSourceVpcID(sourceVpcID); return this; } /** ** A list of tags associated with the Source Network. *
* * @return A list of tags associated with the Source Network. */ public java.util.Map* A list of tags associated with the Source Network. *
* * @param tags * A list of tags associated with the Source Network. */ public void setTags(java.util.Map* A list of tags associated with the Source Network. *
* * @param tags * A list of tags associated with the Source Network. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceNetwork withTags(java.util.Map