AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RevisionLocation.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/RevisionLocationType.h>
9#include <aws/codedeploy/model/S3Location.h>
10#include <aws/codedeploy/model/GitHubLocation.h>
11#include <aws/codedeploy/model/RawString.h>
12#include <aws/codedeploy/model/AppSpecContent.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeDeploy
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEDEPLOY_API RevisionLocation();
40 AWS_CODEDEPLOY_API RevisionLocation(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
55 inline const RevisionLocationType& GetRevisionType() const{ return m_revisionType; }
56 inline bool RevisionTypeHasBeenSet() const { return m_revisionTypeHasBeenSet; }
57 inline void SetRevisionType(const RevisionLocationType& value) { m_revisionTypeHasBeenSet = true; m_revisionType = value; }
58 inline void SetRevisionType(RevisionLocationType&& value) { m_revisionTypeHasBeenSet = true; m_revisionType = std::move(value); }
59 inline RevisionLocation& WithRevisionType(const RevisionLocationType& value) { SetRevisionType(value); return *this;}
60 inline RevisionLocation& WithRevisionType(RevisionLocationType&& value) { SetRevisionType(std::move(value)); return *this;}
62
64
67 inline const S3Location& GetS3Location() const{ return m_s3Location; }
68 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
69 inline void SetS3Location(const S3Location& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; }
70 inline void SetS3Location(S3Location&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); }
71 inline RevisionLocation& WithS3Location(const S3Location& value) { SetS3Location(value); return *this;}
72 inline RevisionLocation& WithS3Location(S3Location&& value) { SetS3Location(std::move(value)); return *this;}
74
76
79 inline const GitHubLocation& GetGitHubLocation() const{ return m_gitHubLocation; }
80 inline bool GitHubLocationHasBeenSet() const { return m_gitHubLocationHasBeenSet; }
81 inline void SetGitHubLocation(const GitHubLocation& value) { m_gitHubLocationHasBeenSet = true; m_gitHubLocation = value; }
82 inline void SetGitHubLocation(GitHubLocation&& value) { m_gitHubLocationHasBeenSet = true; m_gitHubLocation = std::move(value); }
83 inline RevisionLocation& WithGitHubLocation(const GitHubLocation& value) { SetGitHubLocation(value); return *this;}
84 inline RevisionLocation& WithGitHubLocation(GitHubLocation&& value) { SetGitHubLocation(std::move(value)); return *this;}
86
88
92 inline const RawString& GetString() const{ return m_string; }
93 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
94 inline void SetString(const RawString& value) { m_stringHasBeenSet = true; m_string = value; }
95 inline void SetString(RawString&& value) { m_stringHasBeenSet = true; m_string = std::move(value); }
96 inline RevisionLocation& WithString(const RawString& value) { SetString(value); return *this;}
97 inline RevisionLocation& WithString(RawString&& value) { SetString(std::move(value)); return *this;}
99
101
105 inline const AppSpecContent& GetAppSpecContent() const{ return m_appSpecContent; }
106 inline bool AppSpecContentHasBeenSet() const { return m_appSpecContentHasBeenSet; }
107 inline void SetAppSpecContent(const AppSpecContent& value) { m_appSpecContentHasBeenSet = true; m_appSpecContent = value; }
108 inline void SetAppSpecContent(AppSpecContent&& value) { m_appSpecContentHasBeenSet = true; m_appSpecContent = std::move(value); }
109 inline RevisionLocation& WithAppSpecContent(const AppSpecContent& value) { SetAppSpecContent(value); return *this;}
110 inline RevisionLocation& WithAppSpecContent(AppSpecContent&& value) { SetAppSpecContent(std::move(value)); return *this;}
112 private:
113
114 RevisionLocationType m_revisionType;
115 bool m_revisionTypeHasBeenSet = false;
116
117 S3Location m_s3Location;
118 bool m_s3LocationHasBeenSet = false;
119
120 GitHubLocation m_gitHubLocation;
121 bool m_gitHubLocationHasBeenSet = false;
122
123 RawString m_string;
124 bool m_stringHasBeenSet = false;
125
126 AppSpecContent m_appSpecContent;
127 bool m_appSpecContentHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CodeDeploy
132} // namespace Aws
void SetS3Location(const S3Location &value)
const S3Location & GetS3Location() const
RevisionLocation & WithGitHubLocation(GitHubLocation &&value)
void SetAppSpecContent(AppSpecContent &&value)
RevisionLocation & WithString(const RawString &value)
void SetGitHubLocation(const GitHubLocation &value)
RevisionLocation & WithRevisionType(RevisionLocationType &&value)
const GitHubLocation & GetGitHubLocation() const
RevisionLocation & WithAppSpecContent(AppSpecContent &&value)
void SetRevisionType(const RevisionLocationType &value)
RevisionLocation & WithRevisionType(const RevisionLocationType &value)
RevisionLocation & WithS3Location(S3Location &&value)
AWS_CODEDEPLOY_API RevisionLocation(Aws::Utils::Json::JsonView jsonValue)
void SetAppSpecContent(const AppSpecContent &value)
RevisionLocation & WithAppSpecContent(const AppSpecContent &value)
const RevisionLocationType & GetRevisionType() const
RevisionLocation & WithString(RawString &&value)
void SetString(const RawString &value)
AWS_CODEDEPLOY_API RevisionLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
RevisionLocation & WithS3Location(const S3Location &value)
void SetRevisionType(RevisionLocationType &&value)
void SetGitHubLocation(GitHubLocation &&value)
RevisionLocation & WithGitHubLocation(const GitHubLocation &value)
const AppSpecContent & GetAppSpecContent() const
Aws::Utils::Json::JsonValue JsonValue