AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CommitmentInformation.h
1
6#pragma once
7#include <aws/privatenetworks/PrivateNetworks_EXPORTS.h>
8#include <aws/privatenetworks/model/CommitmentConfiguration.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PrivateNetworks
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_PRIVATENETWORKS_API CommitmentInformation();
38 AWS_PRIVATENETWORKS_API CommitmentInformation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PRIVATENETWORKS_API CommitmentInformation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const CommitmentConfiguration& GetCommitmentConfiguration() const{ return m_commitmentConfiguration; }
49 inline bool CommitmentConfigurationHasBeenSet() const { return m_commitmentConfigurationHasBeenSet; }
50 inline void SetCommitmentConfiguration(const CommitmentConfiguration& value) { m_commitmentConfigurationHasBeenSet = true; m_commitmentConfiguration = value; }
51 inline void SetCommitmentConfiguration(CommitmentConfiguration&& value) { m_commitmentConfigurationHasBeenSet = true; m_commitmentConfiguration = std::move(value); }
55
57
62 inline const Aws::Utils::DateTime& GetExpiresOn() const{ return m_expiresOn; }
63 inline bool ExpiresOnHasBeenSet() const { return m_expiresOnHasBeenSet; }
64 inline void SetExpiresOn(const Aws::Utils::DateTime& value) { m_expiresOnHasBeenSet = true; m_expiresOn = value; }
65 inline void SetExpiresOn(Aws::Utils::DateTime&& value) { m_expiresOnHasBeenSet = true; m_expiresOn = std::move(value); }
66 inline CommitmentInformation& WithExpiresOn(const Aws::Utils::DateTime& value) { SetExpiresOn(value); return *this;}
67 inline CommitmentInformation& WithExpiresOn(Aws::Utils::DateTime&& value) { SetExpiresOn(std::move(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetStartAt() const{ return m_startAt; }
75 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
76 inline void SetStartAt(const Aws::Utils::DateTime& value) { m_startAtHasBeenSet = true; m_startAt = value; }
77 inline void SetStartAt(Aws::Utils::DateTime&& value) { m_startAtHasBeenSet = true; m_startAt = std::move(value); }
78 inline CommitmentInformation& WithStartAt(const Aws::Utils::DateTime& value) { SetStartAt(value); return *this;}
79 inline CommitmentInformation& WithStartAt(Aws::Utils::DateTime&& value) { SetStartAt(std::move(value)); return *this;}
81 private:
82
83 CommitmentConfiguration m_commitmentConfiguration;
84 bool m_commitmentConfigurationHasBeenSet = false;
85
86 Aws::Utils::DateTime m_expiresOn;
87 bool m_expiresOnHasBeenSet = false;
88
89 Aws::Utils::DateTime m_startAt;
90 bool m_startAtHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace PrivateNetworks
95} // namespace Aws
void SetCommitmentConfiguration(CommitmentConfiguration &&value)
const Aws::Utils::DateTime & GetExpiresOn() const
CommitmentInformation & WithStartAt(const Aws::Utils::DateTime &value)
const CommitmentConfiguration & GetCommitmentConfiguration() const
AWS_PRIVATENETWORKS_API CommitmentInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
CommitmentInformation & WithCommitmentConfiguration(CommitmentConfiguration &&value)
void SetExpiresOn(const Aws::Utils::DateTime &value)
AWS_PRIVATENETWORKS_API CommitmentInformation(Aws::Utils::Json::JsonView jsonValue)
CommitmentInformation & WithStartAt(Aws::Utils::DateTime &&value)
void SetStartAt(const Aws::Utils::DateTime &value)
CommitmentInformation & WithExpiresOn(const Aws::Utils::DateTime &value)
CommitmentInformation & WithExpiresOn(Aws::Utils::DateTime &&value)
void SetCommitmentConfiguration(const CommitmentConfiguration &value)
AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
CommitmentInformation & WithCommitmentConfiguration(const CommitmentConfiguration &value)
Aws::Utils::Json::JsonValue JsonValue