AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupConfiguration.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resource-groups/model/GroupConfigurationStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/resource-groups/model/GroupConfigurationItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResourceGroups
25{
26namespace Model
27{
28
42 {
43 public:
44 AWS_RESOURCEGROUPS_API GroupConfiguration();
45 AWS_RESOURCEGROUPS_API GroupConfiguration(Aws::Utils::Json::JsonView jsonValue);
46 AWS_RESOURCEGROUPS_API GroupConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const{ return m_configuration; }
55 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
56 inline void SetConfiguration(const Aws::Vector<GroupConfigurationItem>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
57 inline void SetConfiguration(Aws::Vector<GroupConfigurationItem>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
60 inline GroupConfiguration& AddConfiguration(const GroupConfigurationItem& value) { m_configurationHasBeenSet = true; m_configuration.push_back(value); return *this; }
61 inline GroupConfiguration& AddConfiguration(GroupConfigurationItem&& value) { m_configurationHasBeenSet = true; m_configuration.push_back(std::move(value)); return *this; }
63
65
69 inline const Aws::Vector<GroupConfigurationItem>& GetProposedConfiguration() const{ return m_proposedConfiguration; }
70 inline bool ProposedConfigurationHasBeenSet() const { return m_proposedConfigurationHasBeenSet; }
71 inline void SetProposedConfiguration(const Aws::Vector<GroupConfigurationItem>& value) { m_proposedConfigurationHasBeenSet = true; m_proposedConfiguration = value; }
72 inline void SetProposedConfiguration(Aws::Vector<GroupConfigurationItem>&& value) { m_proposedConfigurationHasBeenSet = true; m_proposedConfiguration = std::move(value); }
75 inline GroupConfiguration& AddProposedConfiguration(const GroupConfigurationItem& value) { m_proposedConfigurationHasBeenSet = true; m_proposedConfiguration.push_back(value); return *this; }
76 inline GroupConfiguration& AddProposedConfiguration(GroupConfigurationItem&& value) { m_proposedConfigurationHasBeenSet = true; m_proposedConfiguration.push_back(std::move(value)); return *this; }
78
80
83 inline const GroupConfigurationStatus& GetStatus() const{ return m_status; }
84 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
85 inline void SetStatus(const GroupConfigurationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
86 inline void SetStatus(GroupConfigurationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
87 inline GroupConfiguration& WithStatus(const GroupConfigurationStatus& value) { SetStatus(value); return *this;}
88 inline GroupConfiguration& WithStatus(GroupConfigurationStatus&& value) { SetStatus(std::move(value)); return *this;}
90
92
96 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
97 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
98 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
99 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
100 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
101 inline GroupConfiguration& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
102 inline GroupConfiguration& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
103 inline GroupConfiguration& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
105 private:
106
108 bool m_configurationHasBeenSet = false;
109
110 Aws::Vector<GroupConfigurationItem> m_proposedConfiguration;
111 bool m_proposedConfigurationHasBeenSet = false;
112
114 bool m_statusHasBeenSet = false;
115
116 Aws::String m_failureReason;
117 bool m_failureReasonHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ResourceGroups
122} // namespace Aws
GroupConfiguration & WithProposedConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
void SetStatus(const GroupConfigurationStatus &value)
void SetProposedConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
GroupConfiguration & WithConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
GroupConfiguration & WithFailureReason(const Aws::String &value)
GroupConfiguration & WithFailureReason(Aws::String &&value)
const Aws::Vector< GroupConfigurationItem > & GetProposedConfiguration() const
AWS_RESOURCEGROUPS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< GroupConfigurationItem > & GetConfiguration() const
GroupConfiguration & AddConfiguration(const GroupConfigurationItem &value)
void SetProposedConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
void SetFailureReason(const Aws::String &value)
GroupConfiguration & AddProposedConfiguration(const GroupConfigurationItem &value)
void SetStatus(GroupConfigurationStatus &&value)
GroupConfiguration & WithConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
GroupConfiguration & WithProposedConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
GroupConfiguration & AddProposedConfiguration(GroupConfigurationItem &&value)
AWS_RESOURCEGROUPS_API GroupConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
GroupConfiguration & AddConfiguration(GroupConfigurationItem &&value)
GroupConfiguration & WithStatus(const GroupConfigurationStatus &value)
const GroupConfigurationStatus & GetStatus() const
void SetConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
GroupConfiguration & WithStatus(GroupConfigurationStatus &&value)
AWS_RESOURCEGROUPS_API GroupConfiguration(Aws::Utils::Json::JsonView jsonValue)
GroupConfiguration & WithFailureReason(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue