AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRepositoryRequest.h
1
6#pragma once
7#include <aws/ecr-public/ECRPublic_EXPORTS.h>
8#include <aws/ecr-public/ECRPublicRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecr-public/model/RepositoryCatalogDataInput.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ecr-public/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ECRPublic
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ECRPUBLIC_API CreateRepositoryRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRepository"; }
34
35 AWS_ECRPUBLIC_API Aws::String SerializePayload() const override;
36
38
39
41
48 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
49 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
50 template<typename RepositoryNameT = Aws::String>
51 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
52 template<typename RepositoryNameT = Aws::String>
53 CreateRepositoryRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
55
57
61 inline const RepositoryCatalogDataInput& GetCatalogData() const { return m_catalogData; }
62 inline bool CatalogDataHasBeenSet() const { return m_catalogDataHasBeenSet; }
63 template<typename CatalogDataT = RepositoryCatalogDataInput>
64 void SetCatalogData(CatalogDataT&& value) { m_catalogDataHasBeenSet = true; m_catalogData = std::forward<CatalogDataT>(value); }
65 template<typename CatalogDataT = RepositoryCatalogDataInput>
66 CreateRepositoryRequest& WithCatalogData(CatalogDataT&& value) { SetCatalogData(std::forward<CatalogDataT>(value)); return *this;}
68
70
76 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Vector<Tag>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Vector<Tag>>
81 CreateRepositoryRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsT = Tag>
83 CreateRepositoryRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
85 private:
86
87 Aws::String m_repositoryName;
88 bool m_repositoryNameHasBeenSet = false;
89
90 RepositoryCatalogDataInput m_catalogData;
91 bool m_catalogDataHasBeenSet = false;
92
93 Aws::Vector<Tag> m_tags;
94 bool m_tagsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ECRPublic
99} // namespace Aws
CreateRepositoryRequest & WithCatalogData(CatalogDataT &&value)
CreateRepositoryRequest & WithRepositoryName(RepositoryNameT &&value)
CreateRepositoryRequest & WithTags(TagsT &&value)
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
CreateRepositoryRequest & AddTags(TagsT &&value)
const RepositoryCatalogDataInput & GetCatalogData() const
AWS_ECRPUBLIC_API CreateRepositoryRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector