AWS SDK for C++  1.9.157
AWS SDK for C++
S3AccessPointConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AccessAnalyzer
24 {
25 namespace Model
26 {
27 
44  {
45  public:
50 
51 
55  inline const Aws::String& GetAccessPointPolicy() const{ return m_accessPointPolicy; }
56 
60  inline bool AccessPointPolicyHasBeenSet() const { return m_accessPointPolicyHasBeenSet; }
61 
65  inline void SetAccessPointPolicy(const Aws::String& value) { m_accessPointPolicyHasBeenSet = true; m_accessPointPolicy = value; }
66 
70  inline void SetAccessPointPolicy(Aws::String&& value) { m_accessPointPolicyHasBeenSet = true; m_accessPointPolicy = std::move(value); }
71 
75  inline void SetAccessPointPolicy(const char* value) { m_accessPointPolicyHasBeenSet = true; m_accessPointPolicy.assign(value); }
76 
80  inline S3AccessPointConfiguration& WithAccessPointPolicy(const Aws::String& value) { SetAccessPointPolicy(value); return *this;}
81 
85  inline S3AccessPointConfiguration& WithAccessPointPolicy(Aws::String&& value) { SetAccessPointPolicy(std::move(value)); return *this;}
86 
90  inline S3AccessPointConfiguration& WithAccessPointPolicy(const char* value) { SetAccessPointPolicy(value); return *this;}
91 
92 
101  inline const NetworkOriginConfiguration& GetNetworkOrigin() const{ return m_networkOrigin; }
102 
111  inline bool NetworkOriginHasBeenSet() const { return m_networkOriginHasBeenSet; }
112 
121  inline void SetNetworkOrigin(const NetworkOriginConfiguration& value) { m_networkOriginHasBeenSet = true; m_networkOrigin = value; }
122 
131  inline void SetNetworkOrigin(NetworkOriginConfiguration&& value) { m_networkOriginHasBeenSet = true; m_networkOrigin = std::move(value); }
132 
141  inline S3AccessPointConfiguration& WithNetworkOrigin(const NetworkOriginConfiguration& value) { SetNetworkOrigin(value); return *this;}
142 
151  inline S3AccessPointConfiguration& WithNetworkOrigin(NetworkOriginConfiguration&& value) { SetNetworkOrigin(std::move(value)); return *this;}
152 
153 
158  inline const S3PublicAccessBlockConfiguration& GetPublicAccessBlock() const{ return m_publicAccessBlock; }
159 
164  inline bool PublicAccessBlockHasBeenSet() const { return m_publicAccessBlockHasBeenSet; }
165 
170  inline void SetPublicAccessBlock(const S3PublicAccessBlockConfiguration& value) { m_publicAccessBlockHasBeenSet = true; m_publicAccessBlock = value; }
171 
176  inline void SetPublicAccessBlock(S3PublicAccessBlockConfiguration&& value) { m_publicAccessBlockHasBeenSet = true; m_publicAccessBlock = std::move(value); }
177 
182  inline S3AccessPointConfiguration& WithPublicAccessBlock(const S3PublicAccessBlockConfiguration& value) { SetPublicAccessBlock(value); return *this;}
183 
188  inline S3AccessPointConfiguration& WithPublicAccessBlock(S3PublicAccessBlockConfiguration&& value) { SetPublicAccessBlock(std::move(value)); return *this;}
189 
190  private:
191 
192  Aws::String m_accessPointPolicy;
193  bool m_accessPointPolicyHasBeenSet;
194 
195  NetworkOriginConfiguration m_networkOrigin;
196  bool m_networkOriginHasBeenSet;
197 
198  S3PublicAccessBlockConfiguration m_publicAccessBlock;
199  bool m_publicAccessBlockHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace AccessAnalyzer
204 } // namespace Aws
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::SetPublicAccessBlock
void SetPublicAccessBlock(const S3PublicAccessBlockConfiguration &value)
Definition: S3AccessPointConfiguration.h:170
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::WithAccessPointPolicy
S3AccessPointConfiguration & WithAccessPointPolicy(Aws::String &&value)
Definition: S3AccessPointConfiguration.h:85
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::SetAccessPointPolicy
void SetAccessPointPolicy(Aws::String &&value)
Definition: S3AccessPointConfiguration.h:70
NetworkOriginConfiguration.h
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::WithAccessPointPolicy
S3AccessPointConfiguration & WithAccessPointPolicy(const Aws::String &value)
Definition: S3AccessPointConfiguration.h:80
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::WithNetworkOrigin
S3AccessPointConfiguration & WithNetworkOrigin(NetworkOriginConfiguration &&value)
Definition: S3AccessPointConfiguration.h:151
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::WithNetworkOrigin
S3AccessPointConfiguration & WithNetworkOrigin(const NetworkOriginConfiguration &value)
Definition: S3AccessPointConfiguration.h:141
Aws::AccessAnalyzer::Model::NetworkOriginConfiguration
Definition: NetworkOriginConfiguration.h:41
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::SetAccessPointPolicy
void SetAccessPointPolicy(const char *value)
Definition: S3AccessPointConfiguration.h:75
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::operator=
S3AccessPointConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::SetNetworkOrigin
void SetNetworkOrigin(const NetworkOriginConfiguration &value)
Definition: S3AccessPointConfiguration.h:121
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::NetworkOriginHasBeenSet
bool NetworkOriginHasBeenSet() const
Definition: S3AccessPointConfiguration.h:111
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::S3AccessPointConfiguration
S3AccessPointConfiguration()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::GetNetworkOrigin
const NetworkOriginConfiguration & GetNetworkOrigin() const
Definition: S3AccessPointConfiguration.h:101
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::S3AccessPointConfiguration
S3AccessPointConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::PublicAccessBlockHasBeenSet
bool PublicAccessBlockHasBeenSet() const
Definition: S3AccessPointConfiguration.h:164
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::WithAccessPointPolicy
S3AccessPointConfiguration & WithAccessPointPolicy(const char *value)
Definition: S3AccessPointConfiguration.h:90
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::SetPublicAccessBlock
void SetPublicAccessBlock(S3PublicAccessBlockConfiguration &&value)
Definition: S3AccessPointConfiguration.h:176
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::GetPublicAccessBlock
const S3PublicAccessBlockConfiguration & GetPublicAccessBlock() const
Definition: S3AccessPointConfiguration.h:158
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::SetNetworkOrigin
void SetNetworkOrigin(NetworkOriginConfiguration &&value)
Definition: S3AccessPointConfiguration.h:131
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::AccessPointPolicyHasBeenSet
bool AccessPointPolicyHasBeenSet() const
Definition: S3AccessPointConfiguration.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration
Definition: S3AccessPointConfiguration.h:44
S3PublicAccessBlockConfiguration.h
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::SetAccessPointPolicy
void SetAccessPointPolicy(const Aws::String &value)
Definition: S3AccessPointConfiguration.h:65
Aws::AccessAnalyzer::Model::S3PublicAccessBlockConfiguration
Definition: S3PublicAccessBlockConfiguration.h:39
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::WithPublicAccessBlock
S3AccessPointConfiguration & WithPublicAccessBlock(const S3PublicAccessBlockConfiguration &value)
Definition: S3AccessPointConfiguration.h:182
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::GetAccessPointPolicy
const Aws::String & GetAccessPointPolicy() const
Definition: S3AccessPointConfiguration.h:55
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::WithPublicAccessBlock
S3AccessPointConfiguration & WithPublicAccessBlock(S3PublicAccessBlockConfiguration &&value)
Definition: S3AccessPointConfiguration.h:188
Aws::AccessAnalyzer::Model::S3AccessPointConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const