AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutApplicationAccessScopeRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSOAdmin
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSOADMIN_API PutApplicationAccessScopeRequest() = default;
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 "PutApplicationAccessScope"; }
32
33 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetScope() const { return m_scope; }
44 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
45 template<typename ScopeT = Aws::String>
46 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
47 template<typename ScopeT = Aws::String>
48 PutApplicationAccessScopeRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
50
52
56 inline const Aws::Vector<Aws::String>& GetAuthorizedTargets() const { return m_authorizedTargets; }
57 inline bool AuthorizedTargetsHasBeenSet() const { return m_authorizedTargetsHasBeenSet; }
58 template<typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
59 void SetAuthorizedTargets(AuthorizedTargetsT&& value) { m_authorizedTargetsHasBeenSet = true; m_authorizedTargets = std::forward<AuthorizedTargetsT>(value); }
60 template<typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
61 PutApplicationAccessScopeRequest& WithAuthorizedTargets(AuthorizedTargetsT&& value) { SetAuthorizedTargets(std::forward<AuthorizedTargetsT>(value)); return *this;}
62 template<typename AuthorizedTargetsT = Aws::String>
63 PutApplicationAccessScopeRequest& AddAuthorizedTargets(AuthorizedTargetsT&& value) { m_authorizedTargetsHasBeenSet = true; m_authorizedTargets.emplace_back(std::forward<AuthorizedTargetsT>(value)); return *this; }
65
67
71 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
72 inline bool ApplicationArnHasBeenSet() const { return m_applicationArnHasBeenSet; }
73 template<typename ApplicationArnT = Aws::String>
74 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
75 template<typename ApplicationArnT = Aws::String>
76 PutApplicationAccessScopeRequest& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
78 private:
79
80 Aws::String m_scope;
81 bool m_scopeHasBeenSet = false;
82
83 Aws::Vector<Aws::String> m_authorizedTargets;
84 bool m_authorizedTargetsHasBeenSet = false;
85
86 Aws::String m_applicationArn;
87 bool m_applicationArnHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SSOAdmin
92} // namespace Aws
PutApplicationAccessScopeRequest & WithApplicationArn(ApplicationArnT &&value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutApplicationAccessScopeRequest & WithScope(ScopeT &&value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
PutApplicationAccessScopeRequest & WithAuthorizedTargets(AuthorizedTargetsT &&value)
PutApplicationAccessScopeRequest & AddAuthorizedTargets(AuthorizedTargetsT &&value)
AWS_SSOADMIN_API PutApplicationAccessScopeRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector