AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteGrantRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace LicenseManager
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteGrant"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetGrantArn() const{ return m_grantArn; }
41 
45  inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; }
46 
50  inline void SetGrantArn(const Aws::String& value) { m_grantArnHasBeenSet = true; m_grantArn = value; }
51 
55  inline void SetGrantArn(Aws::String&& value) { m_grantArnHasBeenSet = true; m_grantArn = std::move(value); }
56 
60  inline void SetGrantArn(const char* value) { m_grantArnHasBeenSet = true; m_grantArn.assign(value); }
61 
65  inline DeleteGrantRequest& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;}
66 
70  inline DeleteGrantRequest& WithGrantArn(Aws::String&& value) { SetGrantArn(std::move(value)); return *this;}
71 
75  inline DeleteGrantRequest& WithGrantArn(const char* value) { SetGrantArn(value); return *this;}
76 
77 
81  inline const Aws::String& GetVersion() const{ return m_version; }
82 
86  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
87 
91  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
92 
96  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
97 
101  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
102 
106  inline DeleteGrantRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
107 
111  inline DeleteGrantRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
112 
116  inline DeleteGrantRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
117 
118  private:
119 
120  Aws::String m_grantArn;
121  bool m_grantArnHasBeenSet;
122 
123  Aws::String m_version;
124  bool m_versionHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace LicenseManager
129 } // namespace Aws
Aws::LicenseManager::Model::DeleteGrantRequest::WithGrantArn
DeleteGrantRequest & WithGrantArn(Aws::String &&value)
Definition: DeleteGrantRequest.h:70
Aws::LicenseManager::Model::DeleteGrantRequest::GetGrantArn
const Aws::String & GetGrantArn() const
Definition: DeleteGrantRequest.h:40
Aws::LicenseManager::Model::DeleteGrantRequest::SetGrantArn
void SetGrantArn(const Aws::String &value)
Definition: DeleteGrantRequest.h:50
Aws::LicenseManager::Model::DeleteGrantRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: DeleteGrantRequest.h:91
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LicenseManager::Model::DeleteGrantRequest::SetGrantArn
void SetGrantArn(const char *value)
Definition: DeleteGrantRequest.h:60
Aws::LicenseManager::Model::DeleteGrantRequest::DeleteGrantRequest
DeleteGrantRequest()
LicenseManagerRequest.h
Aws::LicenseManager::Model::DeleteGrantRequest::WithVersion
DeleteGrantRequest & WithVersion(const char *value)
Definition: DeleteGrantRequest.h:116
Aws::LicenseManager::Model::DeleteGrantRequest::WithVersion
DeleteGrantRequest & WithVersion(const Aws::String &value)
Definition: DeleteGrantRequest.h:106
Aws::LicenseManager::Model::DeleteGrantRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: DeleteGrantRequest.h:86
AWS_LICENSEMANAGER_API
#define AWS_LICENSEMANAGER_API
Definition: LicenseManager_EXPORTS.h:28
Aws::LicenseManager::Model::DeleteGrantRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::LicenseManager::Model::DeleteGrantRequest::GetVersion
const Aws::String & GetVersion() const
Definition: DeleteGrantRequest.h:81
Aws::LicenseManager::Model::DeleteGrantRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LicenseManager::Model::DeleteGrantRequest::WithGrantArn
DeleteGrantRequest & WithGrantArn(const Aws::String &value)
Definition: DeleteGrantRequest.h:65
Aws::LicenseManager::Model::DeleteGrantRequest::SetGrantArn
void SetGrantArn(Aws::String &&value)
Definition: DeleteGrantRequest.h:55
LicenseManager_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::LicenseManager::Model::DeleteGrantRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: DeleteGrantRequest.h:96
Aws::LicenseManager::Model::DeleteGrantRequest::WithVersion
DeleteGrantRequest & WithVersion(Aws::String &&value)
Definition: DeleteGrantRequest.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LicenseManager::Model::DeleteGrantRequest::GrantArnHasBeenSet
bool GrantArnHasBeenSet() const
Definition: DeleteGrantRequest.h:45
Aws::LicenseManager::Model::DeleteGrantRequest
Definition: DeleteGrantRequest.h:22
Aws::LicenseManager::Model::DeleteGrantRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteGrantRequest.h:30
Aws::LicenseManager::Model::DeleteGrantRequest::WithGrantArn
DeleteGrantRequest & WithGrantArn(const char *value)
Definition: DeleteGrantRequest.h:75
Aws::LicenseManager::Model::DeleteGrantRequest::SetVersion
void SetVersion(const char *value)
Definition: DeleteGrantRequest.h:101
Aws::LicenseManager::LicenseManagerRequest
Definition: LicenseManagerRequest.h:17