AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDataGrantRequest.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/dataexchange/DataExchangeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dataexchange/model/GrantDistributionScope.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DataExchange
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATAEXCHANGE_API CreateDataGrantRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDataGrant"; }
34
35 AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateDataGrantRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateDataGrantRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateDataGrantRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; }
57 inline bool GrantDistributionScopeHasBeenSet() const { return m_grantDistributionScopeHasBeenSet; }
58 inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = value; }
59 inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = std::move(value); }
63
65
68 inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; }
69 inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; }
70 inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = value; }
71 inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::move(value); }
72 inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal.assign(value); }
74 inline CreateDataGrantRequest& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;}
75 inline CreateDataGrantRequest& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;}
77
79
82 inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; }
83 inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; }
84 inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = value; }
85 inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::move(value); }
86 inline void SetSourceDataSetId(const char* value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId.assign(value); }
87 inline CreateDataGrantRequest& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;}
88 inline CreateDataGrantRequest& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;}
89 inline CreateDataGrantRequest& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; }
97 inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; }
98 inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAtHasBeenSet = true; m_endsAt = value; }
99 inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::move(value); }
100 inline CreateDataGrantRequest& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;}
101 inline CreateDataGrantRequest& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;}
103
105
108 inline const Aws::String& GetDescription() const{ return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 inline CreateDataGrantRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 inline CreateDataGrantRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 inline CreateDataGrantRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
117
119
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
125 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
126 inline CreateDataGrantRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
127 inline CreateDataGrantRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
128 inline CreateDataGrantRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
129 inline CreateDataGrantRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline CreateDataGrantRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
131 inline CreateDataGrantRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
132 inline CreateDataGrantRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
133 inline CreateDataGrantRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
134 inline CreateDataGrantRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
136 private:
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 GrantDistributionScope m_grantDistributionScope;
142 bool m_grantDistributionScopeHasBeenSet = false;
143
144 Aws::String m_receiverPrincipal;
145 bool m_receiverPrincipalHasBeenSet = false;
146
147 Aws::String m_sourceDataSetId;
148 bool m_sourceDataSetIdHasBeenSet = false;
149
150 Aws::Utils::DateTime m_endsAt;
151 bool m_endsAtHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace DataExchange
162} // namespace Aws
CreateDataGrantRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDataGrantRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetGrantDistributionScope(const GrantDistributionScope &value)
const GrantDistributionScope & GetGrantDistributionScope() const
CreateDataGrantRequest & WithReceiverPrincipal(const char *value)
CreateDataGrantRequest & WithReceiverPrincipal(Aws::String &&value)
CreateDataGrantRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDataGrantRequest & WithDescription(Aws::String &&value)
CreateDataGrantRequest & WithName(Aws::String &&value)
CreateDataGrantRequest & AddTags(Aws::String &&key, const char *value)
void SetEndsAt(const Aws::Utils::DateTime &value)
CreateDataGrantRequest & WithName(const char *value)
CreateDataGrantRequest & AddTags(const char *key, const char *value)
CreateDataGrantRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
CreateDataGrantRequest & WithEndsAt(const Aws::Utils::DateTime &value)
CreateDataGrantRequest & WithReceiverPrincipal(const Aws::String &value)
CreateDataGrantRequest & WithGrantDistributionScope(const GrantDistributionScope &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDataGrantRequest & WithGrantDistributionScope(GrantDistributionScope &&value)
CreateDataGrantRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDataGrantRequest & WithSourceDataSetId(const char *value)
CreateDataGrantRequest & AddTags(const char *key, Aws::String &&value)
CreateDataGrantRequest & WithDescription(const Aws::String &value)
void SetGrantDistributionScope(GrantDistributionScope &&value)
CreateDataGrantRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
CreateDataGrantRequest & WithEndsAt(Aws::Utils::DateTime &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDataGrantRequest & WithName(const Aws::String &value)
CreateDataGrantRequest & WithDescription(const char *value)
CreateDataGrantRequest & WithSourceDataSetId(const Aws::String &value)
CreateDataGrantRequest & WithSourceDataSetId(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String