AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGrantRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/license-manager/model/AllowedOperation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LicenseManager
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LICENSEMANAGER_API CreateGrantRequest();
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 "CreateGrant"; }
33
34 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
35
36 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateGrantRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateGrantRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateGrantRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
58 inline const Aws::String& GetGrantName() const{ return m_grantName; }
59 inline bool GrantNameHasBeenSet() const { return m_grantNameHasBeenSet; }
60 inline void SetGrantName(const Aws::String& value) { m_grantNameHasBeenSet = true; m_grantName = value; }
61 inline void SetGrantName(Aws::String&& value) { m_grantNameHasBeenSet = true; m_grantName = std::move(value); }
62 inline void SetGrantName(const char* value) { m_grantNameHasBeenSet = true; m_grantName.assign(value); }
63 inline CreateGrantRequest& WithGrantName(const Aws::String& value) { SetGrantName(value); return *this;}
64 inline CreateGrantRequest& WithGrantName(Aws::String&& value) { SetGrantName(std::move(value)); return *this;}
65 inline CreateGrantRequest& WithGrantName(const char* value) { SetGrantName(value); return *this;}
67
69
72 inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
73 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
74 inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
75 inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
76 inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
77 inline CreateGrantRequest& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
78 inline CreateGrantRequest& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
79 inline CreateGrantRequest& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
81
83
91 inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
92 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
93 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
94 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
95 inline CreateGrantRequest& WithPrincipals(const Aws::Vector<Aws::String>& value) { SetPrincipals(value); return *this;}
96 inline CreateGrantRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
97 inline CreateGrantRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
98 inline CreateGrantRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
99 inline CreateGrantRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
101
103
106 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
107 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
108 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
109 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
110 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
111 inline CreateGrantRequest& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
112 inline CreateGrantRequest& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
113 inline CreateGrantRequest& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
115
117
120 inline const Aws::Vector<AllowedOperation>& GetAllowedOperations() const{ return m_allowedOperations; }
121 inline bool AllowedOperationsHasBeenSet() const { return m_allowedOperationsHasBeenSet; }
122 inline void SetAllowedOperations(const Aws::Vector<AllowedOperation>& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = value; }
123 inline void SetAllowedOperations(Aws::Vector<AllowedOperation>&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations = std::move(value); }
126 inline CreateGrantRequest& AddAllowedOperations(const AllowedOperation& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(value); return *this; }
127 inline CreateGrantRequest& AddAllowedOperations(AllowedOperation&& value) { m_allowedOperationsHasBeenSet = true; m_allowedOperations.push_back(std::move(value)); return *this; }
129 private:
130
131 Aws::String m_clientToken;
132 bool m_clientTokenHasBeenSet = false;
133
134 Aws::String m_grantName;
135 bool m_grantNameHasBeenSet = false;
136
137 Aws::String m_licenseArn;
138 bool m_licenseArnHasBeenSet = false;
139
140 Aws::Vector<Aws::String> m_principals;
141 bool m_principalsHasBeenSet = false;
142
143 Aws::String m_homeRegion;
144 bool m_homeRegionHasBeenSet = false;
145
146 Aws::Vector<AllowedOperation> m_allowedOperations;
147 bool m_allowedOperationsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace LicenseManager
152} // namespace Aws
CreateGrantRequest & WithClientToken(Aws::String &&value)
CreateGrantRequest & AddPrincipals(const char *value)
void SetPrincipals(Aws::Vector< Aws::String > &&value)
const Aws::Vector< AllowedOperation > & GetAllowedOperations() const
CreateGrantRequest & AddPrincipals(const Aws::String &value)
CreateGrantRequest & WithPrincipals(Aws::Vector< Aws::String > &&value)
CreateGrantRequest & WithAllowedOperations(Aws::Vector< AllowedOperation > &&value)
virtual const char * GetServiceRequestName() const override
CreateGrantRequest & WithHomeRegion(Aws::String &&value)
CreateGrantRequest & WithLicenseArn(const Aws::String &value)
CreateGrantRequest & WithLicenseArn(const char *value)
CreateGrantRequest & WithGrantName(const char *value)
void SetAllowedOperations(const Aws::Vector< AllowedOperation > &value)
CreateGrantRequest & WithHomeRegion(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPrincipals() const
CreateGrantRequest & AddAllowedOperations(const AllowedOperation &value)
CreateGrantRequest & WithClientToken(const char *value)
CreateGrantRequest & WithClientToken(const Aws::String &value)
CreateGrantRequest & AddPrincipals(Aws::String &&value)
void SetPrincipals(const Aws::Vector< Aws::String > &value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGrantRequest & WithGrantName(Aws::String &&value)
CreateGrantRequest & WithAllowedOperations(const Aws::Vector< AllowedOperation > &value)
CreateGrantRequest & WithPrincipals(const Aws::Vector< Aws::String > &value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
void SetAllowedOperations(Aws::Vector< AllowedOperation > &&value)
CreateGrantRequest & WithHomeRegion(const char *value)
CreateGrantRequest & AddAllowedOperations(AllowedOperation &&value)
CreateGrantRequest & WithLicenseArn(Aws::String &&value)
CreateGrantRequest & WithGrantName(const Aws::String &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