AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/Grant.h>
11#include <aws/sso-admin/model/GrantType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSOAdmin
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSOADMIN_API PutApplicationGrantRequest();
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 inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
46 inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
47 inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
48 inline PutApplicationGrantRequest& WithApplicationArn(const Aws::String& value) { SetApplicationArn(value); return *this;}
49 inline PutApplicationGrantRequest& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
50 inline PutApplicationGrantRequest& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
52
54
57 inline const Grant& GetGrant() const{ return m_grant; }
58 inline bool GrantHasBeenSet() const { return m_grantHasBeenSet; }
59 inline void SetGrant(const Grant& value) { m_grantHasBeenSet = true; m_grant = value; }
60 inline void SetGrant(Grant&& value) { m_grantHasBeenSet = true; m_grant = std::move(value); }
61 inline PutApplicationGrantRequest& WithGrant(const Grant& value) { SetGrant(value); return *this;}
62 inline PutApplicationGrantRequest& WithGrant(Grant&& value) { SetGrant(std::move(value)); return *this;}
64
66
69 inline const GrantType& GetGrantType() const{ return m_grantType; }
70 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
71 inline void SetGrantType(const GrantType& value) { m_grantTypeHasBeenSet = true; m_grantType = value; }
72 inline void SetGrantType(GrantType&& value) { m_grantTypeHasBeenSet = true; m_grantType = std::move(value); }
73 inline PutApplicationGrantRequest& WithGrantType(const GrantType& value) { SetGrantType(value); return *this;}
74 inline PutApplicationGrantRequest& WithGrantType(GrantType&& value) { SetGrantType(std::move(value)); return *this;}
76 private:
77
78 Aws::String m_applicationArn;
79 bool m_applicationArnHasBeenSet = false;
80
81 Grant m_grant;
82 bool m_grantHasBeenSet = false;
83
84 GrantType m_grantType;
85 bool m_grantTypeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace SSOAdmin
90} // namespace Aws
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutApplicationGrantRequest & WithApplicationArn(Aws::String &&value)
PutApplicationGrantRequest & WithGrant(const Grant &value)
PutApplicationGrantRequest & WithApplicationArn(const Aws::String &value)
PutApplicationGrantRequest & WithApplicationArn(const char *value)
PutApplicationGrantRequest & WithGrant(Grant &&value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
PutApplicationGrantRequest & WithGrantType(const GrantType &value)
PutApplicationGrantRequest & WithGrantType(GrantType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String