AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
UpdateInstanceRequest.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/EncryptionConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SSOAdmin {
16namespace Model {
17
21 public:
22 AWS_SSOADMIN_API UpdateInstanceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateInstance"; }
29
30 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
61 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
62 template <typename InstanceArnT = Aws::String>
63 void SetInstanceArn(InstanceArnT&& value) {
64 m_instanceArnHasBeenSet = true;
65 m_instanceArn = std::forward<InstanceArnT>(value);
66 }
67 template <typename InstanceArnT = Aws::String>
68 UpdateInstanceRequest& WithInstanceArn(InstanceArnT&& value) {
69 SetInstanceArn(std::forward<InstanceArnT>(value));
70 return *this;
71 }
73
75
80 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
81 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
82 template <typename EncryptionConfigurationT = EncryptionConfiguration>
83 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
84 m_encryptionConfigurationHasBeenSet = true;
85 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
86 }
87 template <typename EncryptionConfigurationT = EncryptionConfiguration>
88 UpdateInstanceRequest& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
89 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
90 return *this;
91 }
93
95
103 inline bool GetPermissionSetsEnabled() const { return m_permissionSetsEnabled; }
104 inline bool PermissionSetsEnabledHasBeenSet() const { return m_permissionSetsEnabledHasBeenSet; }
105 inline void SetPermissionSetsEnabled(bool value) {
106 m_permissionSetsEnabledHasBeenSet = true;
107 m_permissionSetsEnabled = value;
108 }
111 return *this;
112 }
114 private:
115 Aws::String m_name;
116
117 Aws::String m_instanceArn;
118
119 EncryptionConfiguration m_encryptionConfiguration;
120
121 bool m_permissionSetsEnabled{false};
122 bool m_nameHasBeenSet = false;
123 bool m_instanceArnHasBeenSet = false;
124 bool m_encryptionConfigurationHasBeenSet = false;
125 bool m_permissionSetsEnabledHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SSOAdmin
130} // namespace Aws
UpdateInstanceRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
UpdateInstanceRequest & WithPermissionSetsEnabled(bool value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateInstanceRequest & WithName(NameT &&value)
UpdateInstanceRequest & WithInstanceArn(InstanceArnT &&value)
AWS_SSOADMIN_API UpdateInstanceRequest()=default
virtual const char * GetServiceRequestName() const override
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String