AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
S3Configuration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHLOGS_API S3Configuration() = default;
31 AWS_CLOUDWATCHLOGS_API S3Configuration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API S3Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetDestinationIdentifier() const { return m_destinationIdentifier; }
41 inline bool DestinationIdentifierHasBeenSet() const { return m_destinationIdentifierHasBeenSet; }
42 template <typename DestinationIdentifierT = Aws::String>
43 void SetDestinationIdentifier(DestinationIdentifierT&& value) {
44 m_destinationIdentifierHasBeenSet = true;
45 m_destinationIdentifier = std::forward<DestinationIdentifierT>(value);
46 }
47 template <typename DestinationIdentifierT = Aws::String>
48 S3Configuration& WithDestinationIdentifier(DestinationIdentifierT&& value) {
49 SetDestinationIdentifier(std::forward<DestinationIdentifierT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
60 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
61 template <typename RoleArnT = Aws::String>
62 void SetRoleArn(RoleArnT&& value) {
63 m_roleArnHasBeenSet = true;
64 m_roleArn = std::forward<RoleArnT>(value);
65 }
66 template <typename RoleArnT = Aws::String>
67 S3Configuration& WithRoleArn(RoleArnT&& value) {
68 SetRoleArn(std::forward<RoleArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
78 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
79 template <typename OwnerAccountIdT = Aws::String>
80 void SetOwnerAccountId(OwnerAccountIdT&& value) {
81 m_ownerAccountIdHasBeenSet = true;
82 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
83 }
84 template <typename OwnerAccountIdT = Aws::String>
85 S3Configuration& WithOwnerAccountId(OwnerAccountIdT&& value) {
86 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
97 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
98 template <typename KmsKeyIdT = Aws::String>
99 void SetKmsKeyId(KmsKeyIdT&& value) {
100 m_kmsKeyIdHasBeenSet = true;
101 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
102 }
103 template <typename KmsKeyIdT = Aws::String>
104 S3Configuration& WithKmsKeyId(KmsKeyIdT&& value) {
105 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_destinationIdentifier;
111
112 Aws::String m_roleArn;
113
114 Aws::String m_ownerAccountId;
115
116 Aws::String m_kmsKeyId;
117 bool m_destinationIdentifierHasBeenSet = false;
118 bool m_roleArnHasBeenSet = false;
119 bool m_ownerAccountIdHasBeenSet = false;
120 bool m_kmsKeyIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CloudWatchLogs
125} // namespace Aws
const Aws::String & GetOwnerAccountId() const
void SetDestinationIdentifier(DestinationIdentifierT &&value)
AWS_CLOUDWATCHLOGS_API S3Configuration(Aws::Utils::Json::JsonView jsonValue)
S3Configuration & WithOwnerAccountId(OwnerAccountIdT &&value)
void SetOwnerAccountId(OwnerAccountIdT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
S3Configuration & WithRoleArn(RoleArnT &&value)
AWS_CLOUDWATCHLOGS_API S3Configuration()=default
S3Configuration & WithKmsKeyId(KmsKeyIdT &&value)
S3Configuration & WithDestinationIdentifier(DestinationIdentifierT &&value)
AWS_CLOUDWATCHLOGS_API S3Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDestinationIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue