AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
S3LogsConfig.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BucketOwnerAccess.h>
9#include <aws/codebuild/model/LogsConfigStatusType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeBuild {
22namespace Model {
23
31 public:
32 AWS_CODEBUILD_API S3LogsConfig() = default;
33 AWS_CODEBUILD_API S3LogsConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEBUILD_API S3LogsConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline LogsConfigStatusType GetStatus() const { return m_status; }
45 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
46 inline void SetStatus(LogsConfigStatusType value) {
47 m_statusHasBeenSet = true;
48 m_status = value;
49 }
51 SetStatus(value);
52 return *this;
53 }
55
57
64 inline const Aws::String& GetLocation() const { return m_location; }
65 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
66 template <typename LocationT = Aws::String>
67 void SetLocation(LocationT&& value) {
68 m_locationHasBeenSet = true;
69 m_location = std::forward<LocationT>(value);
70 }
71 template <typename LocationT = Aws::String>
72 S3LogsConfig& WithLocation(LocationT&& value) {
73 SetLocation(std::forward<LocationT>(value));
74 return *this;
75 }
77
79
83 inline bool GetEncryptionDisabled() const { return m_encryptionDisabled; }
84 inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; }
85 inline void SetEncryptionDisabled(bool value) {
86 m_encryptionDisabledHasBeenSet = true;
87 m_encryptionDisabled = value;
88 }
91 return *this;
92 }
94
96
97 inline BucketOwnerAccess GetBucketOwnerAccess() const { return m_bucketOwnerAccess; }
98 inline bool BucketOwnerAccessHasBeenSet() const { return m_bucketOwnerAccessHasBeenSet; }
100 m_bucketOwnerAccessHasBeenSet = true;
101 m_bucketOwnerAccess = value;
102 }
105 return *this;
106 }
108 private:
110
111 Aws::String m_location;
112
113 bool m_encryptionDisabled{false};
114
116 bool m_statusHasBeenSet = false;
117 bool m_locationHasBeenSet = false;
118 bool m_encryptionDisabledHasBeenSet = false;
119 bool m_bucketOwnerAccessHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace CodeBuild
124} // namespace Aws
const Aws::String & GetLocation() const
S3LogsConfig & WithLocation(LocationT &&value)
AWS_CODEBUILD_API S3LogsConfig(Aws::Utils::Json::JsonView jsonValue)
S3LogsConfig & WithBucketOwnerAccess(BucketOwnerAccess value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
S3LogsConfig & WithEncryptionDisabled(bool value)
S3LogsConfig & WithStatus(LogsConfigStatusType value)
AWS_CODEBUILD_API S3LogsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(LogsConfigStatusType value)
AWS_CODEBUILD_API S3LogsConfig()=default
BucketOwnerAccess GetBucketOwnerAccess() const
void SetBucketOwnerAccess(BucketOwnerAccess value)
LogsConfigStatusType GetStatus() const
void SetLocation(LocationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue