AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BlueInstanceTerminationOption.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/InstanceAction.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_CODEDEPLOY_API BlueInstanceTerminationOption();
40 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const InstanceAction& GetAction() const{ return m_action; }
52 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
53 inline void SetAction(const InstanceAction& value) { m_actionHasBeenSet = true; m_action = value; }
54 inline void SetAction(InstanceAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
55 inline BlueInstanceTerminationOption& WithAction(const InstanceAction& value) { SetAction(value); return *this;}
56 inline BlueInstanceTerminationOption& WithAction(InstanceAction&& value) { SetAction(std::move(value)); return *this;}
58
60
68 inline int GetTerminationWaitTimeInMinutes() const{ return m_terminationWaitTimeInMinutes; }
69 inline bool TerminationWaitTimeInMinutesHasBeenSet() const { return m_terminationWaitTimeInMinutesHasBeenSet; }
70 inline void SetTerminationWaitTimeInMinutes(int value) { m_terminationWaitTimeInMinutesHasBeenSet = true; m_terminationWaitTimeInMinutes = value; }
73 private:
74
75 InstanceAction m_action;
76 bool m_actionHasBeenSet = false;
77
78 int m_terminationWaitTimeInMinutes;
79 bool m_terminationWaitTimeInMinutesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace CodeDeploy
84} // namespace Aws
BlueInstanceTerminationOption & WithAction(InstanceAction &&value)
AWS_CODEDEPLOY_API BlueInstanceTerminationOption & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API BlueInstanceTerminationOption(Aws::Utils::Json::JsonView jsonValue)
BlueInstanceTerminationOption & WithTerminationWaitTimeInMinutes(int value)
BlueInstanceTerminationOption & WithAction(const InstanceAction &value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue