AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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
35 {
36 public:
37 AWS_CODEARTIFACT_API PackageOriginRestrictions() = default;
40 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline AllowPublish GetPublish() const { return m_publish; }
49 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
50 inline void SetPublish(AllowPublish value) { m_publishHasBeenSet = true; m_publish = value; }
51 inline PackageOriginRestrictions& WithPublish(AllowPublish value) { SetPublish(value); return *this;}
53
55
60 inline AllowUpstream GetUpstream() const { return m_upstream; }
61 inline bool UpstreamHasBeenSet() const { return m_upstreamHasBeenSet; }
62 inline void SetUpstream(AllowUpstream value) { m_upstreamHasBeenSet = true; m_upstream = value; }
63 inline PackageOriginRestrictions& WithUpstream(AllowUpstream value) { SetUpstream(value); return *this;}
65 private:
66
68 bool m_publishHasBeenSet = false;
69
71 bool m_upstreamHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CodeArtifact
76} // 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