AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceRequest.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 <aws/sso-admin/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SSOAdmin
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSOADMIN_API CreateInstanceRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateInstance"; }
34
35 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
36
38
39
41
53 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
54 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
55 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
56 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
57 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
58 inline CreateInstanceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
59 inline CreateInstanceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
60 inline CreateInstanceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
62
64
67 inline const Aws::String& GetName() const{ return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
70 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 inline CreateInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 inline CreateInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 inline CreateInstanceRequest& WithName(const char* value) { SetName(value); return *this;}
76
78
81 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
82 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
83 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
84 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
85 inline CreateInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
86 inline CreateInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
87 inline CreateInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
88 inline CreateInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
90 private:
91
92 Aws::String m_clientToken;
93 bool m_clientTokenHasBeenSet = false;
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::Vector<Tag> m_tags;
99 bool m_tagsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace SSOAdmin
104} // namespace Aws
CreateInstanceRequest & WithName(const Aws::String &value)
CreateInstanceRequest & WithName(Aws::String &&value)
CreateInstanceRequest & WithClientToken(Aws::String &&value)
CreateInstanceRequest & AddTags(const Tag &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateInstanceRequest & WithName(const char *value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateInstanceRequest & WithClientToken(const char *value)
CreateInstanceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInstanceRequest & WithClientToken(const Aws::String &value)
CreateInstanceRequest & AddTags(Tag &&value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Tag > & GetTags() const
CreateInstanceRequest & WithTags(const Aws::Vector< Tag > &value)
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