AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePackageGroupRequest.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 CreatePackageGroupRequest();
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 "CreatePackageGroup"; }
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
47 inline const Aws::String& GetDomain() const{ return m_domain; }
48 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
49 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
50 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
51 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
52 inline CreatePackageGroupRequest& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
53 inline CreatePackageGroupRequest& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
54 inline CreatePackageGroupRequest& WithDomain(const char* value) { SetDomain(value); return *this;}
56
58
62 inline const Aws::String& GetDomainOwner() const{ return m_domainOwner; }
63 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
64 inline void SetDomainOwner(const Aws::String& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = value; }
65 inline void SetDomainOwner(Aws::String&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::move(value); }
66 inline void SetDomainOwner(const char* value) { m_domainOwnerHasBeenSet = true; m_domainOwner.assign(value); }
67 inline CreatePackageGroupRequest& WithDomainOwner(const Aws::String& value) { SetDomainOwner(value); return *this;}
68 inline CreatePackageGroupRequest& WithDomainOwner(Aws::String&& value) { SetDomainOwner(std::move(value)); return *this;}
69 inline CreatePackageGroupRequest& WithDomainOwner(const char* value) { SetDomainOwner(value); return *this;}
71
73
77 inline const Aws::String& GetPackageGroup() const{ return m_packageGroup; }
78 inline bool PackageGroupHasBeenSet() const { return m_packageGroupHasBeenSet; }
79 inline void SetPackageGroup(const Aws::String& value) { m_packageGroupHasBeenSet = true; m_packageGroup = value; }
80 inline void SetPackageGroup(Aws::String&& value) { m_packageGroupHasBeenSet = true; m_packageGroup = std::move(value); }
81 inline void SetPackageGroup(const char* value) { m_packageGroupHasBeenSet = true; m_packageGroup.assign(value); }
82 inline CreatePackageGroupRequest& WithPackageGroup(const Aws::String& value) { SetPackageGroup(value); return *this;}
83 inline CreatePackageGroupRequest& WithPackageGroup(Aws::String&& value) { SetPackageGroup(std::move(value)); return *this;}
84 inline CreatePackageGroupRequest& WithPackageGroup(const char* value) { SetPackageGroup(value); return *this;}
86
88
91 inline const Aws::String& GetContactInfo() const{ return m_contactInfo; }
92 inline bool ContactInfoHasBeenSet() const { return m_contactInfoHasBeenSet; }
93 inline void SetContactInfo(const Aws::String& value) { m_contactInfoHasBeenSet = true; m_contactInfo = value; }
94 inline void SetContactInfo(Aws::String&& value) { m_contactInfoHasBeenSet = true; m_contactInfo = std::move(value); }
95 inline void SetContactInfo(const char* value) { m_contactInfoHasBeenSet = true; m_contactInfo.assign(value); }
96 inline CreatePackageGroupRequest& WithContactInfo(const Aws::String& value) { SetContactInfo(value); return *this;}
97 inline CreatePackageGroupRequest& WithContactInfo(Aws::String&& value) { SetContactInfo(std::move(value)); return *this;}
98 inline CreatePackageGroupRequest& WithContactInfo(const char* value) { SetContactInfo(value); return *this;}
100
102
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline CreatePackageGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline CreatePackageGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline CreatePackageGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
119 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
122 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
123 inline CreatePackageGroupRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
124 inline CreatePackageGroupRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
125 inline CreatePackageGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
126 inline CreatePackageGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
128 private:
129
130 Aws::String m_domain;
131 bool m_domainHasBeenSet = false;
132
133 Aws::String m_domainOwner;
134 bool m_domainOwnerHasBeenSet = false;
135
136 Aws::String m_packageGroup;
137 bool m_packageGroupHasBeenSet = false;
138
139 Aws::String m_contactInfo;
140 bool m_contactInfoHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace CodeArtifact
151} // namespace Aws
CreatePackageGroupRequest & AddTags(const Tag &value)
CreatePackageGroupRequest & WithPackageGroup(const char *value)
CreatePackageGroupRequest & WithDescription(const Aws::String &value)
CreatePackageGroupRequest & WithDomainOwner(Aws::String &&value)
CreatePackageGroupRequest & WithDomain(Aws::String &&value)
CreatePackageGroupRequest & WithContactInfo(Aws::String &&value)
CreatePackageGroupRequest & WithContactInfo(const char *value)
CreatePackageGroupRequest & WithDomain(const char *value)
CreatePackageGroupRequest & WithPackageGroup(Aws::String &&value)
CreatePackageGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePackageGroupRequest & WithDescription(Aws::String &&value)
CreatePackageGroupRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePackageGroupRequest & WithDescription(const char *value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
CreatePackageGroupRequest & WithContactInfo(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreatePackageGroupRequest & WithPackageGroup(const Aws::String &value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreatePackageGroupRequest & WithDomainOwner(const Aws::String &value)
CreatePackageGroupRequest & WithDomainOwner(const char *value)
CreatePackageGroupRequest & WithDomain(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector