/* * 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.mgn.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Post Launch Actions to executed on the Test or Cutover instance. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PostLaunchActions implements Serializable, Cloneable, StructuredPojo { /** ** AWS Systems Manager Command's CloudWatch log group name. *
*/ private String cloudWatchLogGroupName; /** ** Deployment type in which AWS Systems Manager Documents will be executed. *
*/ private String deployment; /** ** AWS Systems Manager Command's logs S3 log bucket. *
*/ private String s3LogBucket; /** ** AWS Systems Manager Command's logs S3 output key prefix. *
*/ private String s3OutputKeyPrefix; /** ** AWS Systems Manager Documents. *
*/ private java.util.List* AWS Systems Manager Command's CloudWatch log group name. *
* * @param cloudWatchLogGroupName * AWS Systems Manager Command's CloudWatch log group name. */ public void setCloudWatchLogGroupName(String cloudWatchLogGroupName) { this.cloudWatchLogGroupName = cloudWatchLogGroupName; } /** ** AWS Systems Manager Command's CloudWatch log group name. *
* * @return AWS Systems Manager Command's CloudWatch log group name. */ public String getCloudWatchLogGroupName() { return this.cloudWatchLogGroupName; } /** ** AWS Systems Manager Command's CloudWatch log group name. *
* * @param cloudWatchLogGroupName * AWS Systems Manager Command's CloudWatch log group name. * @return Returns a reference to this object so that method calls can be chained together. */ public PostLaunchActions withCloudWatchLogGroupName(String cloudWatchLogGroupName) { setCloudWatchLogGroupName(cloudWatchLogGroupName); return this; } /** ** Deployment type in which AWS Systems Manager Documents will be executed. *
* * @param deployment * Deployment type in which AWS Systems Manager Documents will be executed. * @see PostLaunchActionsDeploymentType */ public void setDeployment(String deployment) { this.deployment = deployment; } /** ** Deployment type in which AWS Systems Manager Documents will be executed. *
* * @return Deployment type in which AWS Systems Manager Documents will be executed. * @see PostLaunchActionsDeploymentType */ public String getDeployment() { return this.deployment; } /** ** Deployment type in which AWS Systems Manager Documents will be executed. *
* * @param deployment * Deployment type in which AWS Systems Manager Documents will be executed. * @return Returns a reference to this object so that method calls can be chained together. * @see PostLaunchActionsDeploymentType */ public PostLaunchActions withDeployment(String deployment) { setDeployment(deployment); return this; } /** ** Deployment type in which AWS Systems Manager Documents will be executed. *
* * @param deployment * Deployment type in which AWS Systems Manager Documents will be executed. * @return Returns a reference to this object so that method calls can be chained together. * @see PostLaunchActionsDeploymentType */ public PostLaunchActions withDeployment(PostLaunchActionsDeploymentType deployment) { this.deployment = deployment.toString(); return this; } /** ** AWS Systems Manager Command's logs S3 log bucket. *
* * @param s3LogBucket * AWS Systems Manager Command's logs S3 log bucket. */ public void setS3LogBucket(String s3LogBucket) { this.s3LogBucket = s3LogBucket; } /** ** AWS Systems Manager Command's logs S3 log bucket. *
* * @return AWS Systems Manager Command's logs S3 log bucket. */ public String getS3LogBucket() { return this.s3LogBucket; } /** ** AWS Systems Manager Command's logs S3 log bucket. *
* * @param s3LogBucket * AWS Systems Manager Command's logs S3 log bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public PostLaunchActions withS3LogBucket(String s3LogBucket) { setS3LogBucket(s3LogBucket); return this; } /** ** AWS Systems Manager Command's logs S3 output key prefix. *
* * @param s3OutputKeyPrefix * AWS Systems Manager Command's logs S3 output key prefix. */ public void setS3OutputKeyPrefix(String s3OutputKeyPrefix) { this.s3OutputKeyPrefix = s3OutputKeyPrefix; } /** ** AWS Systems Manager Command's logs S3 output key prefix. *
* * @return AWS Systems Manager Command's logs S3 output key prefix. */ public String getS3OutputKeyPrefix() { return this.s3OutputKeyPrefix; } /** ** AWS Systems Manager Command's logs S3 output key prefix. *
* * @param s3OutputKeyPrefix * AWS Systems Manager Command's logs S3 output key prefix. * @return Returns a reference to this object so that method calls can be chained together. */ public PostLaunchActions withS3OutputKeyPrefix(String s3OutputKeyPrefix) { setS3OutputKeyPrefix(s3OutputKeyPrefix); return this; } /** ** AWS Systems Manager Documents. *
* * @return AWS Systems Manager Documents. */ public java.util.List* AWS Systems Manager Documents. *
* * @param ssmDocuments * AWS Systems Manager Documents. */ public void setSsmDocuments(java.util.Collection* AWS Systems Manager Documents. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSsmDocuments(java.util.Collection)} or {@link #withSsmDocuments(java.util.Collection)} if you want to * override the existing values. *
* * @param ssmDocuments * AWS Systems Manager Documents. * @return Returns a reference to this object so that method calls can be chained together. */ public PostLaunchActions withSsmDocuments(SsmDocument... ssmDocuments) { if (this.ssmDocuments == null) { setSsmDocuments(new java.util.ArrayList* AWS Systems Manager Documents. *
* * @param ssmDocuments * AWS Systems Manager Documents. * @return Returns a reference to this object so that method calls can be chained together. */ public PostLaunchActions withSsmDocuments(java.util.Collection