AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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 PackageGroupOriginRestriction();
39 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline const PackageGroupOriginRestrictionMode& GetMode() const{ return m_mode; }
53 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
54 inline void SetMode(const PackageGroupOriginRestrictionMode& value) { m_modeHasBeenSet = true; m_mode = value; }
55 inline void SetMode(PackageGroupOriginRestrictionMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
57 inline PackageGroupOriginRestriction& WithMode(PackageGroupOriginRestrictionMode&& value) { SetMode(std::move(value)); return *this;}
59
61
70 inline const PackageGroupOriginRestrictionMode& GetEffectiveMode() const{ return m_effectiveMode; }
71 inline bool EffectiveModeHasBeenSet() const { return m_effectiveModeHasBeenSet; }
72 inline void SetEffectiveMode(const PackageGroupOriginRestrictionMode& value) { m_effectiveModeHasBeenSet = true; m_effectiveMode = value; }
73 inline void SetEffectiveMode(PackageGroupOriginRestrictionMode&& value) { m_effectiveModeHasBeenSet = true; m_effectiveMode = std::move(value); }
77
79
83 inline const PackageGroupReference& GetInheritedFrom() const{ return m_inheritedFrom; }
84 inline bool InheritedFromHasBeenSet() const { return m_inheritedFromHasBeenSet; }
85 inline void SetInheritedFrom(const PackageGroupReference& value) { m_inheritedFromHasBeenSet = true; m_inheritedFrom = value; }
86 inline void SetInheritedFrom(PackageGroupReference&& value) { m_inheritedFromHasBeenSet = true; m_inheritedFrom = std::move(value); }
90
92
95 inline long long GetRepositoriesCount() const{ return m_repositoriesCount; }
96 inline bool RepositoriesCountHasBeenSet() const { return m_repositoriesCountHasBeenSet; }
97 inline void SetRepositoriesCount(long long value) { m_repositoriesCountHasBeenSet = true; m_repositoriesCount = value; }
98 inline PackageGroupOriginRestriction& WithRepositoriesCount(long long value) { SetRepositoriesCount(value); return *this;}
100 private:
101
103 bool m_modeHasBeenSet = false;
104
105 PackageGroupOriginRestrictionMode m_effectiveMode;
106 bool m_effectiveModeHasBeenSet = false;
107
108 PackageGroupReference m_inheritedFrom;
109 bool m_inheritedFromHasBeenSet = false;
110
111 long long m_repositoriesCount;
112 bool m_repositoriesCountHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CodeArtifact
117} // namespace Aws
PackageGroupOriginRestriction & WithRepositoriesCount(long long value)
PackageGroupOriginRestriction & WithEffectiveMode(PackageGroupOriginRestrictionMode &&value)
PackageGroupOriginRestriction & WithInheritedFrom(const PackageGroupReference &value)
const PackageGroupOriginRestrictionMode & GetEffectiveMode() const
PackageGroupOriginRestriction & WithMode(PackageGroupOriginRestrictionMode &&value)
void SetMode(PackageGroupOriginRestrictionMode &&value)
void SetEffectiveMode(PackageGroupOriginRestrictionMode &&value)
AWS_CODEARTIFACT_API PackageGroupOriginRestriction(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API PackageGroupOriginRestriction & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageGroupOriginRestriction & WithInheritedFrom(PackageGroupReference &&value)
PackageGroupOriginRestriction & WithEffectiveMode(const PackageGroupOriginRestrictionMode &value)
const PackageGroupOriginRestrictionMode & GetMode() const
void SetEffectiveMode(const PackageGroupOriginRestrictionMode &value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageGroupOriginRestriction & WithMode(const PackageGroupOriginRestrictionMode &value)
void SetMode(const PackageGroupOriginRestrictionMode &value)
Aws::Utils::Json::JsonValue JsonValue