AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const AllowPublish& GetPublish() const{ return m_publish; }
49 inline bool PublishHasBeenSet() const { return m_publishHasBeenSet; }
50 inline void SetPublish(const AllowPublish& value) { m_publishHasBeenSet = true; m_publish = value; }
51 inline void SetPublish(AllowPublish&& value) { m_publishHasBeenSet = true; m_publish = std::move(value); }
52 inline PackageOriginRestrictions& WithPublish(const AllowPublish& value) { SetPublish(value); return *this;}
53 inline PackageOriginRestrictions& WithPublish(AllowPublish&& value) { SetPublish(std::move(value)); return *this;}
55
57
62 inline const AllowUpstream& GetUpstream() const{ return m_upstream; }
63 inline bool UpstreamHasBeenSet() const { return m_upstreamHasBeenSet; }
64 inline void SetUpstream(const AllowUpstream& value) { m_upstreamHasBeenSet = true; m_upstream = value; }
65 inline void SetUpstream(AllowUpstream&& value) { m_upstreamHasBeenSet = true; m_upstream = std::move(value); }
66 inline PackageOriginRestrictions& WithUpstream(const AllowUpstream& value) { SetUpstream(value); return *this;}
67 inline PackageOriginRestrictions& WithUpstream(AllowUpstream&& value) { SetUpstream(std::move(value)); return *this;}
69 private:
70
71 AllowPublish m_publish;
72 bool m_publishHasBeenSet = false;
73
74 AllowUpstream m_upstream;
75 bool m_upstreamHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodeArtifact
80} // namespace Aws
PackageOriginRestrictions & WithPublish(const AllowPublish &value)
AWS_CODEARTIFACT_API PackageOriginRestrictions & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageOriginRestrictions & WithUpstream(AllowUpstream &&value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageOriginRestrictions & WithUpstream(const AllowUpstream &value)
AWS_CODEARTIFACT_API PackageOriginRestrictions(Aws::Utils::Json::JsonView jsonValue)
PackageOriginRestrictions & WithPublish(AllowPublish &&value)
Aws::Utils::Json::JsonValue JsonValue