AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
51 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
52 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
53 inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
54 inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
55 inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
57
59
63 inline const RepositoryCatalogDataInput& GetCatalogData() const{ return m_catalogData; }
64 inline bool CatalogDataHasBeenSet() const { return m_catalogDataHasBeenSet; }
65 inline void SetCatalogData(const RepositoryCatalogDataInput& value) { m_catalogDataHasBeenSet = true; m_catalogData = value; }
66 inline void SetCatalogData(RepositoryCatalogDataInput&& value) { m_catalogDataHasBeenSet = true; m_catalogData = std::move(value); }
68 inline CreateRepositoryRequest& WithCatalogData(RepositoryCatalogDataInput&& value) { SetCatalogData(std::move(value)); return *this;}
70
72
78 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
81 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
82 inline CreateRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
83 inline CreateRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
84 inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
85 inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::String m_repositoryName;
90 bool m_repositoryNameHasBeenSet = false;
91
92 RepositoryCatalogDataInput m_catalogData;
93 bool m_catalogDataHasBeenSet = false;
94
95 Aws::Vector<Tag> m_tags;
96 bool m_tagsHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ECRPublic
101} // namespace Aws
CreateRepositoryRequest & WithRepositoryName(const char *value)
CreateRepositoryRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRepositoryRequest & WithCatalogData(RepositoryCatalogDataInput &&value)
CreateRepositoryRequest & WithRepositoryName(const Aws::String &value)
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRepositoryRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
void SetCatalogData(RepositoryCatalogDataInput &&value)
CreateRepositoryRequest & WithRepositoryName(Aws::String &&value)
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
CreateRepositoryRequest & WithTags(Aws::Vector< Tag > &&value)
void SetCatalogData(const RepositoryCatalogDataInput &value)
CreateRepositoryRequest & WithCatalogData(const RepositoryCatalogDataInput &value)
const RepositoryCatalogDataInput & GetCatalogData() const
CreateRepositoryRequest & AddTags(Tag &&value)
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