151 lines
5.5 KiB
C++
151 lines
5.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/kinesisanalytics/KinesisAnalytics_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace KinesisAnalytics
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides a description of CloudWatch logging options, including the log
|
|
* stream Amazon Resource Name (ARN) and the role ARN.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/CloudWatchLoggingOption">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_KINESISANALYTICS_API CloudWatchLoggingOption
|
|
{
|
|
public:
|
|
CloudWatchLoggingOption();
|
|
CloudWatchLoggingOption(Aws::Utils::Json::JsonView jsonValue);
|
|
CloudWatchLoggingOption& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline const Aws::String& GetLogStreamARN() const{ return m_logStreamARN; }
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline bool LogStreamARNHasBeenSet() const { return m_logStreamARNHasBeenSet; }
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline void SetLogStreamARN(const Aws::String& value) { m_logStreamARNHasBeenSet = true; m_logStreamARN = value; }
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline void SetLogStreamARN(Aws::String&& value) { m_logStreamARNHasBeenSet = true; m_logStreamARN = std::move(value); }
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline void SetLogStreamARN(const char* value) { m_logStreamARNHasBeenSet = true; m_logStreamARN.assign(value); }
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline CloudWatchLoggingOption& WithLogStreamARN(const Aws::String& value) { SetLogStreamARN(value); return *this;}
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline CloudWatchLoggingOption& WithLogStreamARN(Aws::String&& value) { SetLogStreamARN(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>ARN of the CloudWatch log to receive application messages.</p>
|
|
*/
|
|
inline CloudWatchLoggingOption& WithLogStreamARN(const char* value) { SetLogStreamARN(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline CloudWatchLoggingOption& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline CloudWatchLoggingOption& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>IAM ARN of the role to use to send application messages. Note: To write
|
|
* application messages to CloudWatch, the IAM role that is used must have the
|
|
* <code>PutLogEvents</code> policy action enabled.</p>
|
|
*/
|
|
inline CloudWatchLoggingOption& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_logStreamARN;
|
|
bool m_logStreamARNHasBeenSet;
|
|
|
|
Aws::String m_roleARN;
|
|
bool m_roleARNHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace KinesisAnalytics
|
|
} // namespace Aws
|