AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateApplicationAssignmentRequest.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/PrincipalType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSOAdmin
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApplicationAssignment"; }
32
33 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetApplicationArn() const{ return m_applicationArn; }
43 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
44 inline void SetApplicationArn(const Aws::String& value) { m_applicationArnHasBeenSet = true; m_applicationArn = value; }
45 inline void SetApplicationArn(Aws::String&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::move(value); }
46 inline void SetApplicationArn(const char* value) { m_applicationArnHasBeenSet = true; m_applicationArn.assign(value); }
48 inline CreateApplicationAssignmentRequest& WithApplicationArn(Aws::String&& value) { SetApplicationArn(std::move(value)); return *this;}
49 inline CreateApplicationAssignmentRequest& WithApplicationArn(const char* value) { SetApplicationArn(value); return *this;}
51
53
60 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
61 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
62 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
63 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
64 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
66 inline CreateApplicationAssignmentRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
67 inline CreateApplicationAssignmentRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
69
71
74 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
75 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
76 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
77 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
79 inline CreateApplicationAssignmentRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_applicationArn;
84 bool m_applicationArnHasBeenSet = false;
85
86 Aws::String m_principalId;
87 bool m_principalIdHasBeenSet = false;
88
89 PrincipalType m_principalType;
90 bool m_principalTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SSOAdmin
95} // namespace Aws
CreateApplicationAssignmentRequest & WithPrincipalId(const char *value)
CreateApplicationAssignmentRequest & WithPrincipalType(const PrincipalType &value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
CreateApplicationAssignmentRequest & WithApplicationArn(Aws::String &&value)
CreateApplicationAssignmentRequest & WithApplicationArn(const char *value)
CreateApplicationAssignmentRequest & WithPrincipalId(Aws::String &&value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationAssignmentRequest & WithPrincipalId(const Aws::String &value)
CreateApplicationAssignmentRequest & WithApplicationArn(const Aws::String &value)
CreateApplicationAssignmentRequest & WithPrincipalType(PrincipalType &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String