/* * 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.ecs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The details of the execute command configuration. *

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

* Specify an Key Management Service key ID to encrypt the data between the local client and the container. *

*/ private String kmsKeyId; /** *

* The log setting to use for redirecting logs for your execute command results. The following log settings are * available. *

* */ private String logging; /** *

* The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or * an Amazon S3 bucket. When logging=OVERRIDE is specified, a logConfiguration must be * provided. *

*/ private ExecuteCommandLogConfiguration logConfiguration; /** *

* Specify an Key Management Service key ID to encrypt the data between the local client and the container. *

* * @param kmsKeyId * Specify an Key Management Service key ID to encrypt the data between the local client and the container. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* Specify an Key Management Service key ID to encrypt the data between the local client and the container. *

* * @return Specify an Key Management Service key ID to encrypt the data between the local client and the container. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

* Specify an Key Management Service key ID to encrypt the data between the local client and the container. *

* * @param kmsKeyId * Specify an Key Management Service key ID to encrypt the data between the local client and the container. * @return Returns a reference to this object so that method calls can be chained together. */ public ExecuteCommandConfiguration withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

* The log setting to use for redirecting logs for your execute command results. The following log settings are * available. *

* * * @param logging * The log setting to use for redirecting logs for your execute command results. The following log settings * are available.

*