AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateDataGrantRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline GrantDistributionScope GetGrantDistributionScope() const { return m_grantDistributionScope; }
55 inline bool GrantDistributionScopeHasBeenSet() const { return m_grantDistributionScopeHasBeenSet; }
56 inline void SetGrantDistributionScope(GrantDistributionScope value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = value; }
59
61
64 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
65 inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; }
66 template<typename ReceiverPrincipalT = Aws::String>
67 void SetReceiverPrincipal(ReceiverPrincipalT&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value); }
68 template<typename ReceiverPrincipalT = Aws::String>
69 CreateDataGrantRequest& WithReceiverPrincipal(ReceiverPrincipalT&& value) { SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value)); return *this;}
71
73
76 inline const Aws::String& GetSourceDataSetId() const { return m_sourceDataSetId; }
77 inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; }
78 template<typename SourceDataSetIdT = Aws::String>
79 void SetSourceDataSetId(SourceDataSetIdT&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::forward<SourceDataSetIdT>(value); }
80 template<typename SourceDataSetIdT = Aws::String>
81 CreateDataGrantRequest& WithSourceDataSetId(SourceDataSetIdT&& value) { SetSourceDataSetId(std::forward<SourceDataSetIdT>(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
89 inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; }
90 template<typename EndsAtT = Aws::Utils::DateTime>
91 void SetEndsAt(EndsAtT&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::forward<EndsAtT>(value); }
92 template<typename EndsAtT = Aws::Utils::DateTime>
93 CreateDataGrantRequest& WithEndsAt(EndsAtT&& value) { SetEndsAt(std::forward<EndsAtT>(value)); return *this;}
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 CreateDataGrantRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
116 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 CreateDataGrantRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
118 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
119 CreateDataGrantRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
120 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
121 }
123 private:
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
129 bool m_grantDistributionScopeHasBeenSet = false;
130
131 Aws::String m_receiverPrincipal;
132 bool m_receiverPrincipalHasBeenSet = false;
133
134 Aws::String m_sourceDataSetId;
135 bool m_sourceDataSetIdHasBeenSet = false;
136
137 Aws::Utils::DateTime m_endsAt{};
138 bool m_endsAtHasBeenSet = false;
139
140 Aws::String m_description;
141 bool m_descriptionHasBeenSet = false;
142
144 bool m_tagsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace DataExchange
149} // namespace Aws
CreateDataGrantRequest & WithEndsAt(EndsAtT &&value)
CreateDataGrantRequest & WithDescription(DescriptionT &&value)
CreateDataGrantRequest & WithSourceDataSetId(SourceDataSetIdT &&value)
CreateDataGrantRequest & WithName(NameT &&value)
CreateDataGrantRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDataGrantRequest & WithGrantDistributionScope(GrantDistributionScope value)
AWS_DATAEXCHANGE_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DATAEXCHANGE_API CreateDataGrantRequest()=default
CreateDataGrantRequest & WithTags(TagsT &&value)
void SetGrantDistributionScope(GrantDistributionScope value)
CreateDataGrantRequest & WithReceiverPrincipal(ReceiverPrincipalT &&value)
virtual const char * GetServiceRequestName() const override
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