AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
StorageLensConfiguration.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3control/model/AccountLevel.h>
10#include <aws/s3control/model/Include.h>
11#include <aws/s3control/model/Exclude.h>
12#include <aws/s3control/model/StorageLensDataExport.h>
13#include <aws/s3control/model/StorageLensAwsOrg.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace S3Control
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_S3CONTROL_API StorageLensConfiguration() = default;
40 AWS_S3CONTROL_API StorageLensConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 StorageLensConfiguration& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
63 inline const AccountLevel& GetAccountLevel() const { return m_accountLevel; }
64 inline bool AccountLevelHasBeenSet() const { return m_accountLevelHasBeenSet; }
65 template<typename AccountLevelT = AccountLevel>
66 void SetAccountLevel(AccountLevelT&& value) { m_accountLevelHasBeenSet = true; m_accountLevel = std::forward<AccountLevelT>(value); }
67 template<typename AccountLevelT = AccountLevel>
68 StorageLensConfiguration& WithAccountLevel(AccountLevelT&& value) { SetAccountLevel(std::forward<AccountLevelT>(value)); return *this;}
70
72
77 inline const Include& GetInclude() const { return m_include; }
78 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
79 template<typename IncludeT = Include>
80 void SetInclude(IncludeT&& value) { m_includeHasBeenSet = true; m_include = std::forward<IncludeT>(value); }
81 template<typename IncludeT = Include>
82 StorageLensConfiguration& WithInclude(IncludeT&& value) { SetInclude(std::forward<IncludeT>(value)); return *this;}
84
86
91 inline const Exclude& GetExclude() const { return m_exclude; }
92 inline bool ExcludeHasBeenSet() const { return m_excludeHasBeenSet; }
93 template<typename ExcludeT = Exclude>
94 void SetExclude(ExcludeT&& value) { m_excludeHasBeenSet = true; m_exclude = std::forward<ExcludeT>(value); }
95 template<typename ExcludeT = Exclude>
96 StorageLensConfiguration& WithExclude(ExcludeT&& value) { SetExclude(std::forward<ExcludeT>(value)); return *this;}
98
100
104 inline const StorageLensDataExport& GetDataExport() const { return m_dataExport; }
105 inline bool DataExportHasBeenSet() const { return m_dataExportHasBeenSet; }
106 template<typename DataExportT = StorageLensDataExport>
107 void SetDataExport(DataExportT&& value) { m_dataExportHasBeenSet = true; m_dataExport = std::forward<DataExportT>(value); }
108 template<typename DataExportT = StorageLensDataExport>
109 StorageLensConfiguration& WithDataExport(DataExportT&& value) { SetDataExport(std::forward<DataExportT>(value)); return *this;}
111
113
116 inline bool GetIsEnabled() const { return m_isEnabled; }
117 inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
118 inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; }
119 inline StorageLensConfiguration& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;}
121
123
127 inline const StorageLensAwsOrg& GetAwsOrg() const { return m_awsOrg; }
128 inline bool AwsOrgHasBeenSet() const { return m_awsOrgHasBeenSet; }
129 template<typename AwsOrgT = StorageLensAwsOrg>
130 void SetAwsOrg(AwsOrgT&& value) { m_awsOrgHasBeenSet = true; m_awsOrg = std::forward<AwsOrgT>(value); }
131 template<typename AwsOrgT = StorageLensAwsOrg>
132 StorageLensConfiguration& WithAwsOrg(AwsOrgT&& value) { SetAwsOrg(std::forward<AwsOrgT>(value)); return *this;}
134
136
142 inline const Aws::String& GetStorageLensArn() const { return m_storageLensArn; }
143 inline bool StorageLensArnHasBeenSet() const { return m_storageLensArnHasBeenSet; }
144 template<typename StorageLensArnT = Aws::String>
145 void SetStorageLensArn(StorageLensArnT&& value) { m_storageLensArnHasBeenSet = true; m_storageLensArn = std::forward<StorageLensArnT>(value); }
146 template<typename StorageLensArnT = Aws::String>
147 StorageLensConfiguration& WithStorageLensArn(StorageLensArnT&& value) { SetStorageLensArn(std::forward<StorageLensArnT>(value)); return *this;}
149 private:
150
151 Aws::String m_id;
152 bool m_idHasBeenSet = false;
153
154 AccountLevel m_accountLevel;
155 bool m_accountLevelHasBeenSet = false;
156
157 Include m_include;
158 bool m_includeHasBeenSet = false;
159
160 Exclude m_exclude;
161 bool m_excludeHasBeenSet = false;
162
163 StorageLensDataExport m_dataExport;
164 bool m_dataExportHasBeenSet = false;
165
166 bool m_isEnabled{false};
167 bool m_isEnabledHasBeenSet = false;
168
169 StorageLensAwsOrg m_awsOrg;
170 bool m_awsOrgHasBeenSet = false;
171
172 Aws::String m_storageLensArn;
173 bool m_storageLensArnHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace S3Control
178} // namespace Aws
StorageLensConfiguration & WithId(IdT &&value)
AWS_S3CONTROL_API StorageLensConfiguration()=default
StorageLensConfiguration & WithAccountLevel(AccountLevelT &&value)
StorageLensConfiguration & WithAwsOrg(AwsOrgT &&value)
StorageLensConfiguration & WithInclude(IncludeT &&value)
const StorageLensDataExport & GetDataExport() const
AWS_S3CONTROL_API StorageLensConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
StorageLensConfiguration & WithExclude(ExcludeT &&value)
AWS_S3CONTROL_API StorageLensConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
StorageLensConfiguration & WithIsEnabled(bool value)
StorageLensConfiguration & WithStorageLensArn(StorageLensArnT &&value)
StorageLensConfiguration & WithDataExport(DataExportT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String