AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageGroupAllowedRepository.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeartifact/model/PackageGroupOriginRestrictionType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeArtifact
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEARTIFACT_API PackageGroupAllowedRepository();
39 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
47 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
48 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
49 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
50 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
52 inline PackageGroupAllowedRepository& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
53 inline PackageGroupAllowedRepository& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
55
57
60 inline const PackageGroupOriginRestrictionType& GetOriginRestrictionType() const{ return m_originRestrictionType; }
61 inline bool OriginRestrictionTypeHasBeenSet() const { return m_originRestrictionTypeHasBeenSet; }
62 inline void SetOriginRestrictionType(const PackageGroupOriginRestrictionType& value) { m_originRestrictionTypeHasBeenSet = true; m_originRestrictionType = value; }
63 inline void SetOriginRestrictionType(PackageGroupOriginRestrictionType&& value) { m_originRestrictionTypeHasBeenSet = true; m_originRestrictionType = std::move(value); }
67 private:
68
69 Aws::String m_repositoryName;
70 bool m_repositoryNameHasBeenSet = false;
71
72 PackageGroupOriginRestrictionType m_originRestrictionType;
73 bool m_originRestrictionTypeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CodeArtifact
78} // namespace Aws
PackageGroupAllowedRepository & WithRepositoryName(Aws::String &&value)
PackageGroupAllowedRepository & WithOriginRestrictionType(PackageGroupOriginRestrictionType &&value)
void SetOriginRestrictionType(PackageGroupOriginRestrictionType &&value)
PackageGroupAllowedRepository & WithOriginRestrictionType(const PackageGroupOriginRestrictionType &value)
const PackageGroupOriginRestrictionType & GetOriginRestrictionType() const
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageGroupAllowedRepository & WithRepositoryName(const Aws::String &value)
PackageGroupAllowedRepository & WithRepositoryName(const char *value)
AWS_CODEARTIFACT_API PackageGroupAllowedRepository & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOriginRestrictionType(const PackageGroupOriginRestrictionType &value)
AWS_CODEARTIFACT_API PackageGroupAllowedRepository(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue