444 lines
18 KiB
C++
444 lines
18 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/codebuild/CodeBuild_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/codebuild/model/CloudWatchLogsConfig.h>
|
|
#include <aws/codebuild/model/S3LogsConfig.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CodeBuild
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Information about build logs in Amazon CloudWatch Logs.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/LogsLocation">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CODEBUILD_API LogsLocation
|
|
{
|
|
public:
|
|
LogsLocation();
|
|
LogsLocation(Aws::Utils::Json::JsonView jsonValue);
|
|
LogsLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline const Aws::String& GetGroupName() const{ return m_groupName; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline LogsLocation& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline LogsLocation& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs group for the build logs.</p>
|
|
*/
|
|
inline LogsLocation& WithGroupName(const char* value) { SetGroupName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline const Aws::String& GetStreamName() const{ return m_streamName; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline LogsLocation& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline LogsLocation& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the Amazon CloudWatch Logs stream for the build logs.</p>
|
|
*/
|
|
inline LogsLocation& WithStreamName(const char* value) { SetStreamName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline const Aws::String& GetDeepLink() const{ return m_deepLink; }
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline bool DeepLinkHasBeenSet() const { return m_deepLinkHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline void SetDeepLink(const Aws::String& value) { m_deepLinkHasBeenSet = true; m_deepLink = value; }
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline void SetDeepLink(Aws::String&& value) { m_deepLinkHasBeenSet = true; m_deepLink = std::move(value); }
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline void SetDeepLink(const char* value) { m_deepLinkHasBeenSet = true; m_deepLink.assign(value); }
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline LogsLocation& WithDeepLink(const Aws::String& value) { SetDeepLink(value); return *this;}
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline LogsLocation& WithDeepLink(Aws::String&& value) { SetDeepLink(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The URL to an individual build log in Amazon CloudWatch Logs.</p>
|
|
*/
|
|
inline LogsLocation& WithDeepLink(const char* value) { SetDeepLink(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline const Aws::String& GetS3DeepLink() const{ return m_s3DeepLink; }
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline bool S3DeepLinkHasBeenSet() const { return m_s3DeepLinkHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline void SetS3DeepLink(const Aws::String& value) { m_s3DeepLinkHasBeenSet = true; m_s3DeepLink = value; }
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline void SetS3DeepLink(Aws::String&& value) { m_s3DeepLinkHasBeenSet = true; m_s3DeepLink = std::move(value); }
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline void SetS3DeepLink(const char* value) { m_s3DeepLinkHasBeenSet = true; m_s3DeepLink.assign(value); }
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline LogsLocation& WithS3DeepLink(const Aws::String& value) { SetS3DeepLink(value); return *this;}
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline LogsLocation& WithS3DeepLink(Aws::String&& value) { SetS3DeepLink(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The URL to a build log in an S3 bucket. </p>
|
|
*/
|
|
inline LogsLocation& WithS3DeepLink(const char* value) { SetS3DeepLink(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline const Aws::String& GetCloudWatchLogsArn() const{ return m_cloudWatchLogsArn; }
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline bool CloudWatchLogsArnHasBeenSet() const { return m_cloudWatchLogsArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline void SetCloudWatchLogsArn(const Aws::String& value) { m_cloudWatchLogsArnHasBeenSet = true; m_cloudWatchLogsArn = value; }
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline void SetCloudWatchLogsArn(Aws::String&& value) { m_cloudWatchLogsArnHasBeenSet = true; m_cloudWatchLogsArn = std::move(value); }
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline void SetCloudWatchLogsArn(const char* value) { m_cloudWatchLogsArnHasBeenSet = true; m_cloudWatchLogsArn.assign(value); }
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline LogsLocation& WithCloudWatchLogsArn(const Aws::String& value) { SetCloudWatchLogsArn(value); return *this;}
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline LogsLocation& WithCloudWatchLogsArn(Aws::String&& value) { SetCloudWatchLogsArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The ARN of Amazon CloudWatch Logs for a build project. Its format is
|
|
* <code>arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}</code>.
|
|
* For more information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies">Resources
|
|
* Defined by Amazon CloudWatch Logs</a>. </p>
|
|
*/
|
|
inline LogsLocation& WithCloudWatchLogsArn(const char* value) { SetCloudWatchLogsArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline const Aws::String& GetS3LogsArn() const{ return m_s3LogsArn; }
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline bool S3LogsArnHasBeenSet() const { return m_s3LogsArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline void SetS3LogsArn(const Aws::String& value) { m_s3LogsArnHasBeenSet = true; m_s3LogsArn = value; }
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline void SetS3LogsArn(Aws::String&& value) { m_s3LogsArnHasBeenSet = true; m_s3LogsArn = std::move(value); }
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline void SetS3LogsArn(const char* value) { m_s3LogsArnHasBeenSet = true; m_s3LogsArn.assign(value); }
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline LogsLocation& WithS3LogsArn(const Aws::String& value) { SetS3LogsArn(value); return *this;}
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline LogsLocation& WithS3LogsArn(Aws::String&& value) { SetS3LogsArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The ARN of S3 logs for a build project. Its format is
|
|
* <code>arn:${Partition}:s3:::${BucketName}/${ObjectName}</code>. For more
|
|
* information, see <a
|
|
* href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazons3.html#amazons3-resources-for-iam-policies">Resources
|
|
* Defined by Amazon S3</a>. </p>
|
|
*/
|
|
inline LogsLocation& WithS3LogsArn(const char* value) { SetS3LogsArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Information about Amazon CloudWatch Logs for a build project. </p>
|
|
*/
|
|
inline const CloudWatchLogsConfig& GetCloudWatchLogs() const{ return m_cloudWatchLogs; }
|
|
|
|
/**
|
|
* <p> Information about Amazon CloudWatch Logs for a build project. </p>
|
|
*/
|
|
inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Information about Amazon CloudWatch Logs for a build project. </p>
|
|
*/
|
|
inline void SetCloudWatchLogs(const CloudWatchLogsConfig& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = value; }
|
|
|
|
/**
|
|
* <p> Information about Amazon CloudWatch Logs for a build project. </p>
|
|
*/
|
|
inline void SetCloudWatchLogs(CloudWatchLogsConfig&& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = std::move(value); }
|
|
|
|
/**
|
|
* <p> Information about Amazon CloudWatch Logs for a build project. </p>
|
|
*/
|
|
inline LogsLocation& WithCloudWatchLogs(const CloudWatchLogsConfig& value) { SetCloudWatchLogs(value); return *this;}
|
|
|
|
/**
|
|
* <p> Information about Amazon CloudWatch Logs for a build project. </p>
|
|
*/
|
|
inline LogsLocation& WithCloudWatchLogs(CloudWatchLogsConfig&& value) { SetCloudWatchLogs(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Information about S3 logs for a build project. </p>
|
|
*/
|
|
inline const S3LogsConfig& GetS3Logs() const{ return m_s3Logs; }
|
|
|
|
/**
|
|
* <p> Information about S3 logs for a build project. </p>
|
|
*/
|
|
inline bool S3LogsHasBeenSet() const { return m_s3LogsHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Information about S3 logs for a build project. </p>
|
|
*/
|
|
inline void SetS3Logs(const S3LogsConfig& value) { m_s3LogsHasBeenSet = true; m_s3Logs = value; }
|
|
|
|
/**
|
|
* <p> Information about S3 logs for a build project. </p>
|
|
*/
|
|
inline void SetS3Logs(S3LogsConfig&& value) { m_s3LogsHasBeenSet = true; m_s3Logs = std::move(value); }
|
|
|
|
/**
|
|
* <p> Information about S3 logs for a build project. </p>
|
|
*/
|
|
inline LogsLocation& WithS3Logs(const S3LogsConfig& value) { SetS3Logs(value); return *this;}
|
|
|
|
/**
|
|
* <p> Information about S3 logs for a build project. </p>
|
|
*/
|
|
inline LogsLocation& WithS3Logs(S3LogsConfig&& value) { SetS3Logs(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_groupName;
|
|
bool m_groupNameHasBeenSet;
|
|
|
|
Aws::String m_streamName;
|
|
bool m_streamNameHasBeenSet;
|
|
|
|
Aws::String m_deepLink;
|
|
bool m_deepLinkHasBeenSet;
|
|
|
|
Aws::String m_s3DeepLink;
|
|
bool m_s3DeepLinkHasBeenSet;
|
|
|
|
Aws::String m_cloudWatchLogsArn;
|
|
bool m_cloudWatchLogsArnHasBeenSet;
|
|
|
|
Aws::String m_s3LogsArn;
|
|
bool m_s3LogsArnHasBeenSet;
|
|
|
|
CloudWatchLogsConfig m_cloudWatchLogs;
|
|
bool m_cloudWatchLogsHasBeenSet;
|
|
|
|
S3LogsConfig m_s3Logs;
|
|
bool m_s3LogsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CodeBuild
|
|
} // namespace Aws
|