AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PackageGroupOriginRestriction.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/PackageGroupOriginRestrictionMode.h>
9#include <aws/codeartifact/model/PackageGroupReference.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeArtifact {
21namespace Model {
22
30 public:
31 AWS_CODEARTIFACT_API PackageGroupOriginRestriction() = default;
34 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline PackageGroupOriginRestrictionMode GetMode() const { return m_mode; }
47 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
49 m_modeHasBeenSet = true;
50 m_mode = value;
51 }
53 SetMode(value);
54 return *this;
55 }
57
59
68 inline PackageGroupOriginRestrictionMode GetEffectiveMode() const { return m_effectiveMode; }
69 inline bool EffectiveModeHasBeenSet() const { return m_effectiveModeHasBeenSet; }
71 m_effectiveModeHasBeenSet = true;
72 m_effectiveMode = value;
73 }
75 SetEffectiveMode(value);
76 return *this;
77 }
79
81
85 inline const PackageGroupReference& GetInheritedFrom() const { return m_inheritedFrom; }
86 inline bool InheritedFromHasBeenSet() const { return m_inheritedFromHasBeenSet; }
87 template <typename InheritedFromT = PackageGroupReference>
88 void SetInheritedFrom(InheritedFromT&& value) {
89 m_inheritedFromHasBeenSet = true;
90 m_inheritedFrom = std::forward<InheritedFromT>(value);
91 }
92 template <typename InheritedFromT = PackageGroupReference>
94 SetInheritedFrom(std::forward<InheritedFromT>(value));
95 return *this;
96 }
98
100
103 inline long long GetRepositoriesCount() const { return m_repositoriesCount; }
104 inline bool RepositoriesCountHasBeenSet() const { return m_repositoriesCountHasBeenSet; }
105 inline void SetRepositoriesCount(long long value) {
106 m_repositoriesCountHasBeenSet = true;
107 m_repositoriesCount = value;
108 }
111 return *this;
112 }
114 private:
116
118
119 PackageGroupReference m_inheritedFrom;
120
121 long long m_repositoriesCount{0};
122 bool m_modeHasBeenSet = false;
123 bool m_effectiveModeHasBeenSet = false;
124 bool m_inheritedFromHasBeenSet = false;
125 bool m_repositoriesCountHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace CodeArtifact
130} // namespace Aws
AWS_CODEARTIFACT_API PackageGroupOriginRestriction()=default
PackageGroupOriginRestriction & WithRepositoriesCount(long long value)
void SetEffectiveMode(PackageGroupOriginRestrictionMode value)
PackageGroupOriginRestriction & WithMode(PackageGroupOriginRestrictionMode value)
PackageGroupOriginRestriction & WithInheritedFrom(InheritedFromT &&value)
AWS_CODEARTIFACT_API PackageGroupOriginRestriction(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API PackageGroupOriginRestriction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageGroupOriginRestriction & WithEffectiveMode(PackageGroupOriginRestrictionMode value)
Aws::Utils::Json::JsonValue JsonValue