AWS SDK for C++  1.9.129
AWS SDK for C++
Plan.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 SSMContacts
23 {
24 namespace Model
25 {
26 
34  {
35  public:
36  Plan();
40 
41 
46  inline const Aws::Vector<Stage>& GetStages() const{ return m_stages; }
47 
52  inline bool StagesHasBeenSet() const { return m_stagesHasBeenSet; }
53 
58  inline void SetStages(const Aws::Vector<Stage>& value) { m_stagesHasBeenSet = true; m_stages = value; }
59 
64  inline void SetStages(Aws::Vector<Stage>&& value) { m_stagesHasBeenSet = true; m_stages = std::move(value); }
65 
70  inline Plan& WithStages(const Aws::Vector<Stage>& value) { SetStages(value); return *this;}
71 
76  inline Plan& WithStages(Aws::Vector<Stage>&& value) { SetStages(std::move(value)); return *this;}
77 
82  inline Plan& AddStages(const Stage& value) { m_stagesHasBeenSet = true; m_stages.push_back(value); return *this; }
83 
88  inline Plan& AddStages(Stage&& value) { m_stagesHasBeenSet = true; m_stages.push_back(std::move(value)); return *this; }
89 
90  private:
91 
92  Aws::Vector<Stage> m_stages;
93  bool m_stagesHasBeenSet;
94  };
95 
96 } // namespace Model
97 } // namespace SSMContacts
98 } // namespace Aws
Aws::SSMContacts::Model::Plan::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSMContacts::Model::Plan::Plan
Plan(Aws::Utils::Json::JsonView jsonValue)
Aws::SSMContacts::Model::Plan::GetStages
const Aws::Vector< Stage > & GetStages() const
Definition: Plan.h:46
Aws::SSMContacts::Model::Plan
Definition: Plan.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SSMContacts::Model::Plan::StagesHasBeenSet
bool StagesHasBeenSet() const
Definition: Plan.h:52
Aws::SSMContacts::Model::Plan::Plan
Plan()
SSMContacts_EXPORTS.h
Aws::SSMContacts::Model::Plan::SetStages
void SetStages(const Aws::Vector< Stage > &value)
Definition: Plan.h:58
Stage.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SSMContacts::Model::Plan::AddStages
Plan & AddStages(Stage &&value)
Definition: Plan.h:88
Aws::SSMContacts::Model::Stage
Definition: Stage.h:34
Aws
Definition: AccessManagementClient.h:15
Aws::SSMContacts::Model::Plan::SetStages
void SetStages(Aws::Vector< Stage > &&value)
Definition: Plan.h:64
Aws::SSMContacts::Model::Plan::WithStages
Plan & WithStages(const Aws::Vector< Stage > &value)
Definition: Plan.h:70
Aws::SSMContacts::Model::Plan::operator=
Plan & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMCONTACTS_API
#define AWS_SSMCONTACTS_API
Definition: SSMContacts_EXPORTS.h:28
Aws::SSMContacts::Model::Plan::AddStages
Plan & AddStages(const Stage &value)
Definition: Plan.h:82
Aws::SSMContacts::Model::Plan::WithStages
Plan & WithStages(Aws::Vector< Stage > &&value)
Definition: Plan.h:76