190 lines
6.6 KiB
C++
190 lines
6.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/logs/CloudWatchLogs_EXPORTS.h>
|
|
#include <aws/logs/CloudWatchLogsRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace CloudWatchLogs
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_CLOUDWATCHLOGS_API PutDestinationRequest : public CloudWatchLogsRequest
|
|
{
|
|
public:
|
|
PutDestinationRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "PutDestination"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline const Aws::String& GetDestinationName() const{ return m_destinationName; }
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; }
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); }
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); }
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;}
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A name for the destination.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of an Amazon Kinesis stream to which to deliver matching log
|
|
* events.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of an IAM role that grants CloudWatch Logs permissions to call the
|
|
* Amazon Kinesis <code>PutRecord</code> operation on the destination stream.</p>
|
|
*/
|
|
inline PutDestinationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_destinationName;
|
|
bool m_destinationNameHasBeenSet;
|
|
|
|
Aws::String m_targetArn;
|
|
bool m_targetArnHasBeenSet;
|
|
|
|
Aws::String m_roleArn;
|
|
bool m_roleArnHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CloudWatchLogs
|
|
} // namespace Aws
|