AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DeploymentComponentUpdatePolicy.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/greengrassv2/model/DeploymentComponentUpdatePolicyAction.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GreengrassV2 {
20namespace Model {
21
34 public:
35 AWS_GREENGRASSV2_API DeploymentComponentUpdatePolicy() = default;
38 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
47 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
48 inline void SetTimeoutInSeconds(int value) {
49 m_timeoutInSecondsHasBeenSet = true;
50 m_timeoutInSeconds = value;
51 }
54 return *this;
55 }
57
59
75 inline DeploymentComponentUpdatePolicyAction GetAction() const { return m_action; }
76 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
78 m_actionHasBeenSet = true;
79 m_action = value;
80 }
82 SetAction(value);
83 return *this;
84 }
86 private:
87 int m_timeoutInSeconds{0};
88
90 bool m_timeoutInSecondsHasBeenSet = false;
91 bool m_actionHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace GreengrassV2
96} // namespace Aws
DeploymentComponentUpdatePolicy & WithAction(DeploymentComponentUpdatePolicyAction value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASSV2_API DeploymentComponentUpdatePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API DeploymentComponentUpdatePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetAction(DeploymentComponentUpdatePolicyAction value)
AWS_GREENGRASSV2_API DeploymentComponentUpdatePolicy()=default
Aws::Utils::Json::JsonValue JsonValue