AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDomainRequest.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/CodeArtifactRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeartifact/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace CodeArtifact
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_CODEARTIFACT_API CreateDomainRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
37
38 AWS_CODEARTIFACT_API Aws::String SerializePayload() const override;
39
40 AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
50 inline const Aws::String& GetDomain() const{ return m_domain; }
51 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
52 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
53 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
54 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
55 inline CreateDomainRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
56 inline CreateDomainRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
57 inline CreateDomainRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
59
61
78 inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
79 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
80 inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
81 inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
82 inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
83 inline CreateDomainRequest& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
84 inline CreateDomainRequest& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
85 inline CreateDomainRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
87
89
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateDomainRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateDomainRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateDomainRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateDomainRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_domain;
104 bool m_domainHasBeenSet = false;
105
106 Aws::String m_encryptionKey;
107 bool m_encryptionKeyHasBeenSet = false;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace CodeArtifact
115} // namespace Aws
CreateDomainRequest & WithEncryptionKey(const char *value)
CreateDomainRequest & WithDomain(const char *value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
CreateDomainRequest & AddTags(const Tag &value)
CreateDomainRequest & WithEncryptionKey(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDomainRequest & WithEncryptionKey(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetEncryptionKey(const Aws::String &value)
CreateDomainRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::Vector< Tag > & GetTags() const
CreateDomainRequest & WithDomain(Aws::String &&value)
CreateDomainRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateDomainRequest & AddTags(Tag &&value)
CreateDomainRequest & WithDomain(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector