AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
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() = default;
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 template<typename DomainT = Aws::String>
50 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
51 template<typename DomainT = Aws::String>
52 CreatePackageGroupRequest& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
54
56
60 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
61 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
62 template<typename DomainOwnerT = Aws::String>
63 void SetDomainOwner(DomainOwnerT&& value) { m_domainOwnerHasBeenSet = true; m_domainOwner = std::forward<DomainOwnerT>(value); }
64 template<typename DomainOwnerT = Aws::String>
65 CreatePackageGroupRequest& WithDomainOwner(DomainOwnerT&& value) { SetDomainOwner(std::forward<DomainOwnerT>(value)); return *this;}
67
69
73 inline const Aws::String& GetPackageGroup() const { return m_packageGroup; }
74 inline bool PackageGroupHasBeenSet() const { return m_packageGroupHasBeenSet; }
75 template<typename PackageGroupT = Aws::String>
76 void SetPackageGroup(PackageGroupT&& value) { m_packageGroupHasBeenSet = true; m_packageGroup = std::forward<PackageGroupT>(value); }
77 template<typename PackageGroupT = Aws::String>
78 CreatePackageGroupRequest& WithPackageGroup(PackageGroupT&& value) { SetPackageGroup(std::forward<PackageGroupT>(value)); return *this;}
80
82
85 inline const Aws::String& GetContactInfo() const { return m_contactInfo; }
86 inline bool ContactInfoHasBeenSet() const { return m_contactInfoHasBeenSet; }
87 template<typename ContactInfoT = Aws::String>
88 void SetContactInfo(ContactInfoT&& value) { m_contactInfoHasBeenSet = true; m_contactInfo = std::forward<ContactInfoT>(value); }
89 template<typename ContactInfoT = Aws::String>
90 CreatePackageGroupRequest& WithContactInfo(ContactInfoT&& value) { SetContactInfo(std::forward<ContactInfoT>(value)); return *this;}
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 CreatePackageGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
109 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 template<typename TagsT = Aws::Vector<Tag>>
112 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
113 template<typename TagsT = Aws::Vector<Tag>>
114 CreatePackageGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
115 template<typename TagsT = Tag>
116 CreatePackageGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
118 private:
119
120 Aws::String m_domain;
121 bool m_domainHasBeenSet = false;
122
123 Aws::String m_domainOwner;
124 bool m_domainOwnerHasBeenSet = false;
125
126 Aws::String m_packageGroup;
127 bool m_packageGroupHasBeenSet = false;
128
129 Aws::String m_contactInfo;
130 bool m_contactInfoHasBeenSet = false;
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 Aws::Vector<Tag> m_tags;
136 bool m_tagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CodeArtifact
141} // namespace Aws
CreatePackageGroupRequest & WithTags(TagsT &&value)
CreatePackageGroupRequest & WithDescription(DescriptionT &&value)
CreatePackageGroupRequest & WithPackageGroup(PackageGroupT &&value)
CreatePackageGroupRequest & WithDomain(DomainT &&value)
CreatePackageGroupRequest & AddTags(TagsT &&value)
AWS_CODEARTIFACT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreatePackageGroupRequest & WithDomainOwner(DomainOwnerT &&value)
AWS_CODEARTIFACT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CODEARTIFACT_API CreatePackageGroupRequest()=default
CreatePackageGroupRequest & WithContactInfo(ContactInfoT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector