AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GeneratedPolicyProperties.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/CloudTrailProperties.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ACCESSANALYZER_API GeneratedPolicyProperties();
36 AWS_ACCESSANALYZER_API GeneratedPolicyProperties(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline bool GetIsComplete() const{ return m_isComplete; }
48 inline bool IsCompleteHasBeenSet() const { return m_isCompleteHasBeenSet; }
49 inline void SetIsComplete(bool value) { m_isCompleteHasBeenSet = true; m_isComplete = value; }
50 inline GeneratedPolicyProperties& WithIsComplete(bool value) { SetIsComplete(value); return *this;}
52
54
58 inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
59 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
60 inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
61 inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
62 inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
63 inline GeneratedPolicyProperties& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
64 inline GeneratedPolicyProperties& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
65 inline GeneratedPolicyProperties& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
67
69
72 inline const CloudTrailProperties& GetCloudTrailProperties() const{ return m_cloudTrailProperties; }
73 inline bool CloudTrailPropertiesHasBeenSet() const { return m_cloudTrailPropertiesHasBeenSet; }
74 inline void SetCloudTrailProperties(const CloudTrailProperties& value) { m_cloudTrailPropertiesHasBeenSet = true; m_cloudTrailProperties = value; }
75 inline void SetCloudTrailProperties(CloudTrailProperties&& value) { m_cloudTrailPropertiesHasBeenSet = true; m_cloudTrailProperties = std::move(value); }
79 private:
80
81 bool m_isComplete;
82 bool m_isCompleteHasBeenSet = false;
83
84 Aws::String m_principalArn;
85 bool m_principalArnHasBeenSet = false;
86
87 CloudTrailProperties m_cloudTrailProperties;
88 bool m_cloudTrailPropertiesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace AccessAnalyzer
93} // namespace Aws
GeneratedPolicyProperties & WithPrincipalArn(Aws::String &&value)
AWS_ACCESSANALYZER_API GeneratedPolicyProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
GeneratedPolicyProperties & WithPrincipalArn(const char *value)
GeneratedPolicyProperties & WithCloudTrailProperties(const CloudTrailProperties &value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
GeneratedPolicyProperties & WithCloudTrailProperties(CloudTrailProperties &&value)
void SetCloudTrailProperties(const CloudTrailProperties &value)
GeneratedPolicyProperties & WithPrincipalArn(const Aws::String &value)
AWS_ACCESSANALYZER_API GeneratedPolicyProperties(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue