AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
DeploymentReadyOption.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/DeploymentReadyAction.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API DeploymentReadyOption() = default;
31 AWS_CODEDEPLOY_API DeploymentReadyOption(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEDEPLOY_API DeploymentReadyOption& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
47 inline DeploymentReadyAction GetActionOnTimeout() const { return m_actionOnTimeout; }
48 inline bool ActionOnTimeoutHasBeenSet() const { return m_actionOnTimeoutHasBeenSet; }
50 m_actionOnTimeoutHasBeenSet = true;
51 m_actionOnTimeout = value;
52 }
54 SetActionOnTimeout(value);
55 return *this;
56 }
58
60
65 inline int64_t GetWaitTimeInMinutes() const { return m_waitTimeInMinutes; }
66 inline bool WaitTimeInMinutesHasBeenSet() const { return m_waitTimeInMinutesHasBeenSet; }
67 inline void SetWaitTimeInMinutes(int64_t value) {
68 m_waitTimeInMinutesHasBeenSet = true;
69 m_waitTimeInMinutes = value;
70 }
73 return *this;
74 }
76 private:
78
79 int64_t m_waitTimeInMinutes{0};
80 bool m_actionOnTimeoutHasBeenSet = false;
81 bool m_waitTimeInMinutesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CodeDeploy
86} // namespace Aws
AWS_CODEDEPLOY_API DeploymentReadyOption(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetActionOnTimeout(DeploymentReadyAction value)
AWS_CODEDEPLOY_API DeploymentReadyOption()=default
DeploymentReadyOption & WithActionOnTimeout(DeploymentReadyAction value)
DeploymentReadyOption & WithWaitTimeInMinutes(int64_t value)
AWS_CODEDEPLOY_API DeploymentReadyOption & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)