AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutApplicationGrantRequest.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/sso-admin/SSOAdminRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sso-admin/model/GrantType.h>
11#include <aws/sso-admin/model/Grant.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSOAdmin
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSOADMIN_API PutApplicationGrantRequest() = default;
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 "PutApplicationGrant"; }
33
34 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
44 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
45 template<typename ApplicationArnT = Aws::String>
46 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
47 template<typename ApplicationArnT = Aws::String>
48 PutApplicationGrantRequest& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
50
52
55 inline GrantType GetGrantType() const { return m_grantType; }
56 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
57 inline void SetGrantType(GrantType value) { m_grantTypeHasBeenSet = true; m_grantType = value; }
58 inline PutApplicationGrantRequest& WithGrantType(GrantType value) { SetGrantType(value); return *this;}
60
62
65 inline const Grant& GetGrant() const { return m_grant; }
66 inline bool GrantHasBeenSet() const { return m_grantHasBeenSet; }
67 template<typename GrantT = Grant>
68 void SetGrant(GrantT&& value) { m_grantHasBeenSet = true; m_grant = std::forward<GrantT>(value); }
69 template<typename GrantT = Grant>
70 PutApplicationGrantRequest& WithGrant(GrantT&& value) { SetGrant(std::forward<GrantT>(value)); return *this;}
72 private:
73
74 Aws::String m_applicationArn;
75 bool m_applicationArnHasBeenSet = false;
76
77 GrantType m_grantType{GrantType::NOT_SET};
78 bool m_grantTypeHasBeenSet = false;
79
80 Grant m_grant;
81 bool m_grantHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace SSOAdmin
86} // 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