AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
PutApplicationGrantRequest.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/Grant.h>
11#include <aws/sso-admin/model/GrantType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SSOAdmin {
17namespace Model {
18
22 public:
23 AWS_SSOADMIN_API PutApplicationGrantRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutApplicationGrant"; }
30
31 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
40 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
41 template <typename ApplicationArnT = Aws::String>
42 void SetApplicationArn(ApplicationArnT&& value) {
43 m_applicationArnHasBeenSet = true;
44 m_applicationArn = std::forward<ApplicationArnT>(value);
45 }
46 template <typename ApplicationArnT = Aws::String>
48 SetApplicationArn(std::forward<ApplicationArnT>(value));
49 return *this;
50 }
52
54
57 inline GrantType GetGrantType() const { return m_grantType; }
58 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
59 inline void SetGrantType(GrantType value) {
60 m_grantTypeHasBeenSet = true;
61 m_grantType = value;
62 }
64 SetGrantType(value);
65 return *this;
66 }
68
70
73 inline const Grant& GetGrant() const { return m_grant; }
74 inline bool GrantHasBeenSet() const { return m_grantHasBeenSet; }
75 template <typename GrantT = Grant>
76 void SetGrant(GrantT&& value) {
77 m_grantHasBeenSet = true;
78 m_grant = std::forward<GrantT>(value);
79 }
80 template <typename GrantT = Grant>
82 SetGrant(std::forward<GrantT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_applicationArn;
88
89 GrantType m_grantType{GrantType::NOT_SET};
90
91 Grant m_grant;
92 bool m_applicationArnHasBeenSet = false;
93 bool m_grantTypeHasBeenSet = false;
94 bool m_grantHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SSOAdmin
99} // namespace Aws
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutApplicationGrantRequest & WithGrantType(GrantType value)
PutApplicationGrantRequest & WithApplicationArn(ApplicationArnT &&value)
PutApplicationGrantRequest & WithGrant(GrantT &&value)
AWS_SSOADMIN_API PutApplicationGrantRequest()=default
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