AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PackageOriginRestrictions.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/AllowPublish.h>
9#include <aws/codeartifact/model/AllowUpstream.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
31 public:
32 AWS_CODEARTIFACT_API PackageOriginRestrictions() = default;
35 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline AllowPublish GetPublish() const { return m_publish; }
43 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
44 inline void SetPublish(AllowPublish value) {
45 m_publishHasBeenSet = true;
46 m_publish = value;
47 }
49 SetPublish(value);
50 return *this;
51 }
53
55
60 inline AllowUpstream GetUpstream() const { return m_upstream; }
61 inline bool UpstreamHasBeenSet() const { return m_upstreamHasBeenSet; }
62 inline void SetUpstream(AllowUpstream value) {
63 m_upstreamHasBeenSet = true;
64 m_upstream = value;
65 }
67 SetUpstream(value);
68 return *this;
69 }
71 private:
73
75 bool m_publishHasBeenSet = false;
76 bool m_upstreamHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CodeArtifact
81} // namespace Aws
AWS_CODEARTIFACT_API PackageOriginRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API PackageOriginRestrictions()=default
PackageOriginRestrictions & WithPublish(AllowPublish value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEARTIFACT_API PackageOriginRestrictions(Aws::Utils::Json::JsonView jsonValue)
PackageOriginRestrictions & WithUpstream(AllowUpstream value)
Aws::Utils::Json::JsonValue JsonValue