AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFarmRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace deadline
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DEADLINE_API CreateFarmRequest();
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 "CreateFarm"; }
33
34 AWS_DEADLINE_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
49 inline CreateFarmRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
50 inline CreateFarmRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateFarmRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
60 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
63 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
64 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
65 inline CreateFarmRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
66 inline CreateFarmRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
67 inline CreateFarmRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
69
71
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
79 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
80 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
81 inline CreateFarmRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
82 inline CreateFarmRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
83 inline CreateFarmRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
85
87
90 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
91 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
92 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
93 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
94 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
95 inline CreateFarmRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
96 inline CreateFarmRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
97 inline CreateFarmRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
99
101
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline CreateFarmRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
110 inline CreateFarmRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
111 inline CreateFarmRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112 inline CreateFarmRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
113 inline CreateFarmRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline CreateFarmRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
115 inline CreateFarmRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline CreateFarmRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline CreateFarmRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119 private:
120
121 Aws::String m_clientToken;
122 bool m_clientTokenHasBeenSet = false;
123
124 Aws::String m_displayName;
125 bool m_displayNameHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::String m_kmsKeyArn;
131 bool m_kmsKeyArnHasBeenSet = false;
132
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace deadline
139} // namespace Aws
CreateFarmRequest & WithDisplayName(Aws::String &&value)
const Aws::String & GetDisplayName() const
void SetKmsKeyArn(const Aws::String &value)
CreateFarmRequest & AddTags(const char *key, const char *value)
CreateFarmRequest & WithClientToken(Aws::String &&value)
void SetDisplayName(const Aws::String &value)
CreateFarmRequest & WithClientToken(const char *value)
CreateFarmRequest & WithClientToken(const Aws::String &value)
CreateFarmRequest & WithDescription(Aws::String &&value)
CreateFarmRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFarmRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFarmRequest & WithDescription(const Aws::String &value)
const Aws::String & GetClientToken() const
CreateFarmRequest & WithKmsKeyArn(Aws::String &&value)
void SetDescription(const Aws::String &value)
CreateFarmRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFarmRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateFarmRequest & WithDisplayName(const char *value)
CreateFarmRequest & WithDescription(const char *value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFarmRequest & WithDisplayName(const Aws::String &value)
CreateFarmRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateFarmRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateFarmRequest & WithKmsKeyArn(const Aws::String &value)
const Aws::String & GetKmsKeyArn() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
const Aws::String & GetDescription() const
CreateFarmRequest & AddTags(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
CreateFarmRequest & WithKmsKeyArn(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetClientToken(const Aws::String &value)
CreateFarmRequest & AddTags(Aws::String &&key, Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String