AWS SDK for C++  1.8.71
AWS SDK for C++
CreateDomainRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace CodeArtifact
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateDomain"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
47  inline const Aws::String& GetDomain() const{ return m_domain; }
48 
55  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
56 
63  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
64 
71  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
72 
79  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
80 
87  inline CreateDomainRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
88 
95  inline CreateDomainRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
96 
103  inline CreateDomainRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
104 
105 
122  inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; }
123 
140  inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
141 
158  inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; }
159 
176  inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); }
177 
194  inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); }
195 
212  inline CreateDomainRequest& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;}
213 
230  inline CreateDomainRequest& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;}
231 
248  inline CreateDomainRequest& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;}
249 
250  private:
251 
252  Aws::String m_domain;
253  bool m_domainHasBeenSet;
254 
255  Aws::String m_encryptionKey;
256  bool m_encryptionKeyHasBeenSet;
257  };
258 
259 } // namespace Model
260 } // namespace CodeArtifact
261 } // namespace Aws
CreateDomainRequest & WithDomain(Aws::String &&value)
CreateDomainRequest & WithDomain(const char *value)
void SetEncryptionKey(const Aws::String &value)
CreateDomainRequest & WithDomain(const Aws::String &value)
#define AWS_CODEARTIFACT_API
virtual const char * GetServiceRequestName() const override
CreateDomainRequest & WithEncryptionKey(const char *value)
CreateDomainRequest & WithEncryptionKey(const Aws::String &value)
CreateDomainRequest & WithEncryptionKey(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97