AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
GetApplicationGrantRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sso-admin/SSOAdminRequest.h>
9#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
10#include <aws/sso-admin/model/GrantType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSOAdmin {
16namespace Model {
17
21 public:
22 AWS_SSOADMIN_API GetApplicationGrantRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetApplicationGrant"; }
29
30 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
39 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
40 template <typename ApplicationArnT = Aws::String>
41 void SetApplicationArn(ApplicationArnT&& value) {
42 m_applicationArnHasBeenSet = true;
43 m_applicationArn = std::forward<ApplicationArnT>(value);
44 }
45 template <typename ApplicationArnT = Aws::String>
47 SetApplicationArn(std::forward<ApplicationArnT>(value));
48 return *this;
49 }
51
53
56 inline GrantType GetGrantType() const { return m_grantType; }
57 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
58 inline void SetGrantType(GrantType value) {
59 m_grantTypeHasBeenSet = true;
60 m_grantType = value;
61 }
63 SetGrantType(value);
64 return *this;
65 }
67 private:
68 Aws::String m_applicationArn;
69
70 GrantType m_grantType{GrantType::NOT_SET};
71 bool m_applicationArnHasBeenSet = false;
72 bool m_grantTypeHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace SSOAdmin
77} // namespace Aws
AWS_SSOADMIN_API GetApplicationGrantRequest()=default
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetApplicationGrantRequest & WithGrantType(GrantType value)
GetApplicationGrantRequest & WithApplicationArn(ApplicationArnT &&value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String