AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageOriginConfiguration.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/PackageOriginRestrictions.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeArtifact
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODEARTIFACT_API PackageOriginConfiguration();
38 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const PackageOriginRestrictions& GetRestrictions() const{ return m_restrictions; }
47 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
48 inline void SetRestrictions(const PackageOriginRestrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
49 inline void SetRestrictions(PackageOriginRestrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
51 inline PackageOriginConfiguration& WithRestrictions(PackageOriginRestrictions&& value) { SetRestrictions(std::move(value)); return *this;}
53 private:
54
55 PackageOriginRestrictions m_restrictions;
56 bool m_restrictionsHasBeenSet = false;
57 };
58
59} // namespace Model
60} // namespace CodeArtifact
61} // namespace Aws
AWS_CODEARTIFACT_API PackageOriginConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API PackageOriginConfiguration(Aws::Utils::Json::JsonView jsonValue)
PackageOriginConfiguration & WithRestrictions(PackageOriginRestrictions &&value)
const PackageOriginRestrictions & GetRestrictions() const
void SetRestrictions(const PackageOriginRestrictions &value)
PackageOriginConfiguration & WithRestrictions(const PackageOriginRestrictions &value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue