AWS SDK for C++  1.9.129
AWS SDK for C++
DeploymentComponentUpdatePolicy.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GreengrassV2
22 {
23 namespace Model
24 {
25 
38  {
39  public:
44 
45 
51  inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
52 
58  inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
59 
65  inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
66 
72  inline DeploymentComponentUpdatePolicy& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
73 
74 
91  inline const DeploymentComponentUpdatePolicyAction& GetAction() const{ return m_action; }
92 
109  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
110 
127  inline void SetAction(const DeploymentComponentUpdatePolicyAction& value) { m_actionHasBeenSet = true; m_action = value; }
128 
145  inline void SetAction(DeploymentComponentUpdatePolicyAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
146 
163  inline DeploymentComponentUpdatePolicy& WithAction(const DeploymentComponentUpdatePolicyAction& value) { SetAction(value); return *this;}
164 
181  inline DeploymentComponentUpdatePolicy& WithAction(DeploymentComponentUpdatePolicyAction&& value) { SetAction(std::move(value)); return *this;}
182 
183  private:
184 
185  int m_timeoutInSeconds;
186  bool m_timeoutInSecondsHasBeenSet;
187 
189  bool m_actionHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace GreengrassV2
194 } // namespace Aws
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::WithTimeoutInSeconds
DeploymentComponentUpdatePolicy & WithTimeoutInSeconds(int value)
Definition: DeploymentComponentUpdatePolicy.h:72
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::WithAction
DeploymentComponentUpdatePolicy & WithAction(const DeploymentComponentUpdatePolicyAction &value)
Definition: DeploymentComponentUpdatePolicy.h:163
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::DeploymentComponentUpdatePolicy
DeploymentComponentUpdatePolicy()
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: DeploymentComponentUpdatePolicy.h:109
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::GetTimeoutInSeconds
int GetTimeoutInSeconds() const
Definition: DeploymentComponentUpdatePolicy.h:51
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicyAction
DeploymentComponentUpdatePolicyAction
Definition: DeploymentComponentUpdatePolicyAction.h:17
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::DeploymentComponentUpdatePolicy
DeploymentComponentUpdatePolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::operator=
DeploymentComponentUpdatePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy
Definition: DeploymentComponentUpdatePolicy.h:38
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::SetAction
void SetAction(const DeploymentComponentUpdatePolicyAction &value)
Definition: DeploymentComponentUpdatePolicy.h:127
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
DeploymentComponentUpdatePolicyAction.h
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::TimeoutInSecondsHasBeenSet
bool TimeoutInSecondsHasBeenSet() const
Definition: DeploymentComponentUpdatePolicy.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::WithAction
DeploymentComponentUpdatePolicy & WithAction(DeploymentComponentUpdatePolicyAction &&value)
Definition: DeploymentComponentUpdatePolicy.h:181
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::SetTimeoutInSeconds
void SetTimeoutInSeconds(int value)
Definition: DeploymentComponentUpdatePolicy.h:65
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::SetAction
void SetAction(DeploymentComponentUpdatePolicyAction &&value)
Definition: DeploymentComponentUpdatePolicy.h:145
Aws::GreengrassV2::Model::DeploymentComponentUpdatePolicy::GetAction
const DeploymentComponentUpdatePolicyAction & GetAction() const
Definition: DeploymentComponentUpdatePolicy.h:91