AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CommitmentConfiguration.h
1
6#pragma once
7#include <aws/privatenetworks/PrivateNetworks_EXPORTS.h>
8#include <aws/privatenetworks/model/CommitmentLength.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 PrivateNetworks
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_PRIVATENETWORKS_API CommitmentConfiguration();
38 AWS_PRIVATENETWORKS_API CommitmentConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
59 inline bool GetAutomaticRenewal() const{ return m_automaticRenewal; }
60 inline bool AutomaticRenewalHasBeenSet() const { return m_automaticRenewalHasBeenSet; }
61 inline void SetAutomaticRenewal(bool value) { m_automaticRenewalHasBeenSet = true; m_automaticRenewal = value; }
62 inline CommitmentConfiguration& WithAutomaticRenewal(bool value) { SetAutomaticRenewal(value); return *this;}
64
66
70 inline const CommitmentLength& GetCommitmentLength() const{ return m_commitmentLength; }
71 inline bool CommitmentLengthHasBeenSet() const { return m_commitmentLengthHasBeenSet; }
72 inline void SetCommitmentLength(const CommitmentLength& value) { m_commitmentLengthHasBeenSet = true; m_commitmentLength = value; }
73 inline void SetCommitmentLength(CommitmentLength&& value) { m_commitmentLengthHasBeenSet = true; m_commitmentLength = std::move(value); }
75 inline CommitmentConfiguration& WithCommitmentLength(CommitmentLength&& value) { SetCommitmentLength(std::move(value)); return *this;}
77 private:
78
79 bool m_automaticRenewal;
80 bool m_automaticRenewalHasBeenSet = false;
81
82 CommitmentLength m_commitmentLength;
83 bool m_commitmentLengthHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace PrivateNetworks
88} // namespace Aws
AWS_PRIVATENETWORKS_API CommitmentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PRIVATENETWORKS_API CommitmentConfiguration(Aws::Utils::Json::JsonView jsonValue)
CommitmentConfiguration & WithCommitmentLength(const CommitmentLength &value)
CommitmentConfiguration & WithAutomaticRenewal(bool value)
CommitmentConfiguration & WithCommitmentLength(CommitmentLength &&value)
Aws::Utils::Json::JsonValue JsonValue