AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAggregationAuthorizationRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/config/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONFIGSERVICE_API PutAggregationAuthorizationRequest();
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 "PutAggregationAuthorization"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetAuthorizedAccountId() const{ return m_authorizedAccountId; }
44 inline bool AuthorizedAccountIdHasBeenSet() const { return m_authorizedAccountIdHasBeenSet; }
45 inline void SetAuthorizedAccountId(const Aws::String& value) { m_authorizedAccountIdHasBeenSet = true; m_authorizedAccountId = value; }
46 inline void SetAuthorizedAccountId(Aws::String&& value) { m_authorizedAccountIdHasBeenSet = true; m_authorizedAccountId = std::move(value); }
47 inline void SetAuthorizedAccountId(const char* value) { m_authorizedAccountIdHasBeenSet = true; m_authorizedAccountId.assign(value); }
50 inline PutAggregationAuthorizationRequest& WithAuthorizedAccountId(const char* value) { SetAuthorizedAccountId(value); return *this;}
52
54
57 inline const Aws::String& GetAuthorizedAwsRegion() const{ return m_authorizedAwsRegion; }
58 inline bool AuthorizedAwsRegionHasBeenSet() const { return m_authorizedAwsRegionHasBeenSet; }
59 inline void SetAuthorizedAwsRegion(const Aws::String& value) { m_authorizedAwsRegionHasBeenSet = true; m_authorizedAwsRegion = value; }
60 inline void SetAuthorizedAwsRegion(Aws::String&& value) { m_authorizedAwsRegionHasBeenSet = true; m_authorizedAwsRegion = std::move(value); }
61 inline void SetAuthorizedAwsRegion(const char* value) { m_authorizedAwsRegionHasBeenSet = true; m_authorizedAwsRegion.assign(value); }
64 inline PutAggregationAuthorizationRequest& WithAuthorizedAwsRegion(const char* value) { SetAuthorizedAwsRegion(value); return *this;}
66
68
71 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
74 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
75 inline PutAggregationAuthorizationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
76 inline PutAggregationAuthorizationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
77 inline PutAggregationAuthorizationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
78 inline PutAggregationAuthorizationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
80 private:
81
82 Aws::String m_authorizedAccountId;
83 bool m_authorizedAccountIdHasBeenSet = false;
84
85 Aws::String m_authorizedAwsRegion;
86 bool m_authorizedAwsRegionHasBeenSet = false;
87
88 Aws::Vector<Tag> m_tags;
89 bool m_tagsHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ConfigService
94} // namespace Aws
PutAggregationAuthorizationRequest & WithAuthorizedAccountId(const char *value)
PutAggregationAuthorizationRequest & WithAuthorizedAwsRegion(const Aws::String &value)
PutAggregationAuthorizationRequest & WithAuthorizedAwsRegion(Aws::String &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutAggregationAuthorizationRequest & WithAuthorizedAccountId(Aws::String &&value)
PutAggregationAuthorizationRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
PutAggregationAuthorizationRequest & WithAuthorizedAwsRegion(const char *value)
PutAggregationAuthorizationRequest & AddTags(const Tag &value)
PutAggregationAuthorizationRequest & WithAuthorizedAccountId(const Aws::String &value)
PutAggregationAuthorizationRequest & WithTags(Aws::Vector< Tag > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector