AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourcePolicy.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 ResourcePolicy();
36 AWS_CODEARTIFACT_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEARTIFACT_API ResourcePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
46 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
47 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
48 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
49 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
50 inline ResourcePolicy& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
51 inline ResourcePolicy& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
52 inline ResourcePolicy& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
54
56
59 inline const Aws::String& GetRevision() const{ return m_revision; }
60 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
61 inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
62 inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
63 inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
64 inline ResourcePolicy& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
65 inline ResourcePolicy& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;}
66 inline ResourcePolicy& WithRevision(const char* value) { SetRevision(value); return *this;}
68
70
73 inline const Aws::String& GetDocument() const{ return m_document; }
74 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
75 inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
76 inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
77 inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
78 inline ResourcePolicy& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
79 inline ResourcePolicy& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
80 inline ResourcePolicy& WithDocument(const char* value) { SetDocument(value); return *this;}
82 private:
83
84 Aws::String m_resourceArn;
85 bool m_resourceArnHasBeenSet = false;
86
87 Aws::String m_revision;
88 bool m_revisionHasBeenSet = false;
89
90 Aws::String m_document;
91 bool m_documentHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CodeArtifact
96} // namespace Aws
void SetRevision(Aws::String &&value)
const Aws::String & GetResourceArn() const
ResourcePolicy & WithRevision(Aws::String &&value)
AWS_CODEARTIFACT_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetResourceArn(Aws::String &&value)
const Aws::String & GetDocument() const
void SetDocument(Aws::String &&value)
const Aws::String & GetRevision() const
ResourcePolicy & WithDocument(const Aws::String &value)
ResourcePolicy & WithDocument(const char *value)
void SetDocument(const Aws::String &value)
void SetResourceArn(const Aws::String &value)
AWS_CODEARTIFACT_API ResourcePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
ResourcePolicy & WithRevision(const Aws::String &value)
void SetRevision(const Aws::String &value)
ResourcePolicy & WithResourceArn(const char *value)
ResourcePolicy & WithRevision(const char *value)
ResourcePolicy & WithResourceArn(const Aws::String &value)
ResourcePolicy & WithDocument(Aws::String &&value)
ResourcePolicy & WithResourceArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue