AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutGroupConfigurationRequest.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resource-groups/model/GroupConfigurationItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ResourceGroups
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_RESOURCEGROUPS_API PutGroupConfigurationRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutGroupConfiguration"; }
33
34 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetGroup() const{ return m_group; }
43 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
44 inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; }
45 inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); }
46 inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); }
47 inline PutGroupConfigurationRequest& WithGroup(const Aws::String& value) { SetGroup(value); return *this;}
48 inline PutGroupConfigurationRequest& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;}
49 inline PutGroupConfigurationRequest& WithGroup(const char* value) { SetGroup(value); return *this;}
51
53
64 inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const{ return m_configuration; }
65 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
66 inline void SetConfiguration(const Aws::Vector<GroupConfigurationItem>& value) { m_configurationHasBeenSet = true; m_configuration = value; }
67 inline void SetConfiguration(Aws::Vector<GroupConfigurationItem>&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
70 inline PutGroupConfigurationRequest& AddConfiguration(const GroupConfigurationItem& value) { m_configurationHasBeenSet = true; m_configuration.push_back(value); return *this; }
71 inline PutGroupConfigurationRequest& AddConfiguration(GroupConfigurationItem&& value) { m_configurationHasBeenSet = true; m_configuration.push_back(std::move(value)); return *this; }
73 private:
74
75 Aws::String m_group;
76 bool m_groupHasBeenSet = false;
77
79 bool m_configurationHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace ResourceGroups
84} // namespace Aws
PutGroupConfigurationRequest & WithConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
PutGroupConfigurationRequest & WithConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
PutGroupConfigurationRequest & AddConfiguration(const GroupConfigurationItem &value)
void SetConfiguration(Aws::Vector< GroupConfigurationItem > &&value)
PutGroupConfigurationRequest & AddConfiguration(GroupConfigurationItem &&value)
const Aws::Vector< GroupConfigurationItem > & GetConfiguration() const
PutGroupConfigurationRequest & WithGroup(Aws::String &&value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
PutGroupConfigurationRequest & WithGroup(const char *value)
PutGroupConfigurationRequest & WithGroup(const Aws::String &value)
void SetConfiguration(const Aws::Vector< GroupConfigurationItem > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector