AWS SDK for C++  1.9.105
AWS SDK for C++
PolicyTypeSummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Organizations
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const PolicyType& GetType() const{ return m_type; }
46 
50  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 
55  inline void SetType(const PolicyType& value) { m_typeHasBeenSet = true; m_type = value; }
56 
60  inline void SetType(PolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
61 
65  inline PolicyTypeSummary& WithType(const PolicyType& value) { SetType(value); return *this;}
66 
70  inline PolicyTypeSummary& WithType(PolicyType&& value) { SetType(std::move(value)); return *this;}
71 
72 
78  inline const PolicyTypeStatus& GetStatus() const{ return m_status; }
79 
85  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 
92  inline void SetStatus(const PolicyTypeStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 
99  inline void SetStatus(PolicyTypeStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
100 
106  inline PolicyTypeSummary& WithStatus(const PolicyTypeStatus& value) { SetStatus(value); return *this;}
107 
113  inline PolicyTypeSummary& WithStatus(PolicyTypeStatus&& value) { SetStatus(std::move(value)); return *this;}
114 
115  private:
116 
117  PolicyType m_type;
118  bool m_typeHasBeenSet;
119 
120  PolicyTypeStatus m_status;
121  bool m_statusHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace Organizations
126 } // namespace Aws
Aws::Organizations::Model::PolicyTypeSummary::GetStatus
const PolicyTypeStatus & GetStatus() const
Definition: PolicyTypeSummary.h:78
Aws::Organizations::Model::PolicyTypeSummary::PolicyTypeSummary
PolicyTypeSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::Organizations::Model::PolicyTypeSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Organizations::Model::PolicyTypeSummary::GetType
const PolicyType & GetType() const
Definition: PolicyTypeSummary.h:45
Aws::Organizations::Model::PolicyTypeSummary::SetType
void SetType(const PolicyType &value)
Definition: PolicyTypeSummary.h:55
PolicyType.h
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::Organizations::Model::PolicyTypeSummary::SetType
void SetType(PolicyType &&value)
Definition: PolicyTypeSummary.h:60
Aws::Organizations::Model::PolicyTypeSummary::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: PolicyTypeSummary.h:50
Aws::Organizations::Model::PolicyTypeSummary::PolicyTypeSummary
PolicyTypeSummary()
Aws::Organizations::Model::PolicyTypeSummary::SetStatus
void SetStatus(PolicyTypeStatus &&value)
Definition: PolicyTypeSummary.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Organizations::Model::PolicyTypeSummary::WithType
PolicyTypeSummary & WithType(const PolicyType &value)
Definition: PolicyTypeSummary.h:65
Aws::Organizations::Model::PolicyTypeSummary::SetStatus
void SetStatus(const PolicyTypeStatus &value)
Definition: PolicyTypeSummary.h:92
Aws::Organizations::Model::PolicyTypeSummary::WithStatus
PolicyTypeSummary & WithStatus(PolicyTypeStatus &&value)
Definition: PolicyTypeSummary.h:113
Aws::Organizations::Model::PolicyTypeSummary::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: PolicyTypeSummary.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::PolicyTypeSummary::operator=
PolicyTypeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Organizations_EXPORTS.h
Aws::Organizations::Model::PolicyTypeSummary::WithType
PolicyTypeSummary & WithType(PolicyType &&value)
Definition: PolicyTypeSummary.h:70
PolicyTypeStatus.h
Aws::Organizations::Model::PolicyTypeSummary
Definition: PolicyTypeSummary.h:34
Aws::Organizations::Model::PolicyTypeStatus
PolicyTypeStatus
Definition: PolicyTypeStatus.h:17
Aws::Organizations::Model::PolicyTypeSummary::WithStatus
PolicyTypeSummary & WithStatus(const PolicyTypeStatus &value)
Definition: PolicyTypeSummary.h:106