AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrderedResourceDefinition.h
1
6#pragma once
7#include <aws/privatenetworks/PrivateNetworks_EXPORTS.h>
8#include <aws/privatenetworks/model/CommitmentConfiguration.h>
9#include <aws/privatenetworks/model/NetworkResourceDefinitionType.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
33 {
34 public:
35 AWS_PRIVATENETWORKS_API OrderedResourceDefinition();
36 AWS_PRIVATENETWORKS_API OrderedResourceDefinition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const CommitmentConfiguration& GetCommitmentConfiguration() const{ return m_commitmentConfiguration; }
48 inline bool CommitmentConfigurationHasBeenSet() const { return m_commitmentConfigurationHasBeenSet; }
49 inline void SetCommitmentConfiguration(const CommitmentConfiguration& value) { m_commitmentConfigurationHasBeenSet = true; m_commitmentConfiguration = value; }
50 inline void SetCommitmentConfiguration(CommitmentConfiguration&& value) { m_commitmentConfigurationHasBeenSet = true; m_commitmentConfiguration = std::move(value); }
54
56
59 inline int GetCount() const{ return m_count; }
60 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
61 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
62 inline OrderedResourceDefinition& WithCount(int value) { SetCount(value); return *this;}
64
66
69 inline const NetworkResourceDefinitionType& GetType() const{ return m_type; }
70 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
71 inline void SetType(const NetworkResourceDefinitionType& value) { m_typeHasBeenSet = true; m_type = value; }
72 inline void SetType(NetworkResourceDefinitionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
73 inline OrderedResourceDefinition& WithType(const NetworkResourceDefinitionType& value) { SetType(value); return *this;}
74 inline OrderedResourceDefinition& WithType(NetworkResourceDefinitionType&& value) { SetType(std::move(value)); return *this;}
76 private:
77
78 CommitmentConfiguration m_commitmentConfiguration;
79 bool m_commitmentConfigurationHasBeenSet = false;
80
81 int m_count;
82 bool m_countHasBeenSet = false;
83
85 bool m_typeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace PrivateNetworks
90} // namespace Aws
void SetType(const NetworkResourceDefinitionType &value)
void SetType(NetworkResourceDefinitionType &&value)
AWS_PRIVATENETWORKS_API OrderedResourceDefinition(Aws::Utils::Json::JsonView jsonValue)
OrderedResourceDefinition & WithType(NetworkResourceDefinitionType &&value)
OrderedResourceDefinition & WithType(const NetworkResourceDefinitionType &value)
OrderedResourceDefinition & WithCommitmentConfiguration(CommitmentConfiguration &&value)
AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PRIVATENETWORKS_API OrderedResourceDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCommitmentConfiguration(const CommitmentConfiguration &value)
const NetworkResourceDefinitionType & GetType() const
OrderedResourceDefinition & WithCommitmentConfiguration(const CommitmentConfiguration &value)
const CommitmentConfiguration & GetCommitmentConfiguration() const
void SetCommitmentConfiguration(CommitmentConfiguration &&value)
Aws::Utils::Json::JsonValue JsonValue