AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageVersionSummary.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeartifact/model/PackageVersionStatus.h>
10#include <aws/codeartifact/model/PackageVersionOrigin.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeArtifact
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_CODEARTIFACT_API PackageVersionSummary();
41 AWS_CODEARTIFACT_API PackageVersionSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetVersion() const{ return m_version; }
51 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
52 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
53 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
54 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
55 inline PackageVersionSummary& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
56 inline PackageVersionSummary& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
57 inline PackageVersionSummary& WithVersion(const char* value) { SetVersion(value); return *this;}
59
61
64 inline const Aws::String& GetRevision() const{ return m_revision; }
65 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
66 inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; }
67 inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
68 inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); }
69 inline PackageVersionSummary& WithRevision(const Aws::String& value) { SetRevision(value); return *this;}
70 inline PackageVersionSummary& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;}
71 inline PackageVersionSummary& WithRevision(const char* value) { SetRevision(value); return *this;}
73
75
79 inline const PackageVersionStatus& GetStatus() const{ return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(const PackageVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
82 inline void SetStatus(PackageVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
83 inline PackageVersionSummary& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;}
84 inline PackageVersionSummary& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;}
86
88
94 inline const PackageVersionOrigin& GetOrigin() const{ return m_origin; }
95 inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
96 inline void SetOrigin(const PackageVersionOrigin& value) { m_originHasBeenSet = true; m_origin = value; }
97 inline void SetOrigin(PackageVersionOrigin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
98 inline PackageVersionSummary& WithOrigin(const PackageVersionOrigin& value) { SetOrigin(value); return *this;}
99 inline PackageVersionSummary& WithOrigin(PackageVersionOrigin&& value) { SetOrigin(std::move(value)); return *this;}
101 private:
102
103 Aws::String m_version;
104 bool m_versionHasBeenSet = false;
105
106 Aws::String m_revision;
107 bool m_revisionHasBeenSet = false;
108
109 PackageVersionStatus m_status;
110 bool m_statusHasBeenSet = false;
111
112 PackageVersionOrigin m_origin;
113 bool m_originHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CodeArtifact
118} // namespace Aws
PackageVersionSummary & WithStatus(const PackageVersionStatus &value)
PackageVersionSummary & WithOrigin(PackageVersionOrigin &&value)
PackageVersionSummary & WithVersion(const Aws::String &value)
PackageVersionSummary & WithOrigin(const PackageVersionOrigin &value)
PackageVersionSummary & WithVersion(Aws::String &&value)
const PackageVersionOrigin & GetOrigin() const
PackageVersionSummary & WithRevision(const char *value)
void SetOrigin(const PackageVersionOrigin &value)
void SetStatus(const PackageVersionStatus &value)
PackageVersionSummary & WithVersion(const char *value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageVersionSummary & WithStatus(PackageVersionStatus &&value)
AWS_CODEARTIFACT_API PackageVersionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const PackageVersionStatus & GetStatus() const
PackageVersionSummary & WithRevision(Aws::String &&value)
AWS_CODEARTIFACT_API PackageVersionSummary(Aws::Utils::Json::JsonView jsonValue)
PackageVersionSummary & WithRevision(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue