/* * 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.logs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutDestinationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A name for the destination. *
*/ private String destinationName; /** ** The ARN of an Amazon Kinesis stream to which to deliver matching log events. *
*/ private String targetArn; /** *
* The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord
* operation on the destination stream.
*
* An optional list of key-value pairs to associate with the resource. *
** For more information about tagging, see Tagging Amazon Web Services resources *
*/ private com.amazonaws.internal.SdkInternalMap* A name for the destination. *
* * @param destinationName * A name for the destination. */ public void setDestinationName(String destinationName) { this.destinationName = destinationName; } /** ** A name for the destination. *
* * @return A name for the destination. */ public String getDestinationName() { return this.destinationName; } /** ** A name for the destination. *
* * @param destinationName * A name for the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public PutDestinationRequest withDestinationName(String destinationName) { setDestinationName(destinationName); return this; } /** ** The ARN of an Amazon Kinesis stream to which to deliver matching log events. *
* * @param targetArn * The ARN of an Amazon Kinesis stream to which to deliver matching log events. */ public void setTargetArn(String targetArn) { this.targetArn = targetArn; } /** ** The ARN of an Amazon Kinesis stream to which to deliver matching log events. *
* * @return The ARN of an Amazon Kinesis stream to which to deliver matching log events. */ public String getTargetArn() { return this.targetArn; } /** ** The ARN of an Amazon Kinesis stream to which to deliver matching log events. *
* * @param targetArn * The ARN of an Amazon Kinesis stream to which to deliver matching log events. * @return Returns a reference to this object so that method calls can be chained together. */ public PutDestinationRequest withTargetArn(String targetArn) { setTargetArn(targetArn); return this; } /** *
* The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord
* operation on the destination stream.
*
PutRecord
operation on the destination stream.
*/
public void setRoleArn(String roleArn) {
this.roleArn = roleArn;
}
/**
*
* The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord
* operation on the destination stream.
*
PutRecord
operation on the destination stream.
*/
public String getRoleArn() {
return this.roleArn;
}
/**
*
* The ARN of an IAM role that grants CloudWatch Logs permissions to call the Amazon Kinesis PutRecord
* operation on the destination stream.
*
PutRecord
operation on the destination stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutDestinationRequest withRoleArn(String roleArn) {
setRoleArn(roleArn);
return this;
}
/**
* * An optional list of key-value pairs to associate with the resource. *
** For more information about tagging, see Tagging Amazon Web Services resources *
* * @return An optional list of key-value pairs to associate with the resource. *
* For more information about tagging, see Tagging Amazon Web Services
* resources
*/
public java.util.Map
* An optional list of key-value pairs to associate with the resource.
*
* For more information about tagging, see Tagging Amazon Web Services resources
*
* For more information about tagging, see Tagging Amazon Web Services
* resources
*/
public void setTags(java.util.Map
* An optional list of key-value pairs to associate with the resource.
*
* For more information about tagging, see Tagging Amazon Web Services resources
*
* For more information about tagging, see Tagging Amazon Web Services
* resources
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutDestinationRequest withTags(java.util.Map