AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 RevisionLocationType GetRevisionType() const { return m_revisionType; }
56 inline bool RevisionTypeHasBeenSet() const { return m_revisionTypeHasBeenSet; }
57 inline void SetRevisionType(RevisionLocationType value) { m_revisionTypeHasBeenSet = true; m_revisionType = value; }
60
62
65 inline const S3Location& GetS3Location() const { return m_s3Location; }
66 inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; }
67 template<typename S3LocationT = S3Location>
68 void SetS3Location(S3LocationT&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::forward<S3LocationT>(value); }
69 template<typename S3LocationT = S3Location>
70 RevisionLocation& WithS3Location(S3LocationT&& value) { SetS3Location(std::forward<S3LocationT>(value)); return *this;}
72
74
77 inline const GitHubLocation& GetGitHubLocation() const { return m_gitHubLocation; }
78 inline bool GitHubLocationHasBeenSet() const { return m_gitHubLocationHasBeenSet; }
79 template<typename GitHubLocationT = GitHubLocation>
80 void SetGitHubLocation(GitHubLocationT&& value) { m_gitHubLocationHasBeenSet = true; m_gitHubLocation = std::forward<GitHubLocationT>(value); }
81 template<typename GitHubLocationT = GitHubLocation>
82 RevisionLocation& WithGitHubLocation(GitHubLocationT&& value) { SetGitHubLocation(std::forward<GitHubLocationT>(value)); return *this;}
84
86
90 inline const RawString& GetString() const { return m_string; }
91 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
92 template<typename StringT = RawString>
93 void SetString(StringT&& value) { m_stringHasBeenSet = true; m_string = std::forward<StringT>(value); }
94 template<typename StringT = RawString>
95 RevisionLocation& WithString(StringT&& value) { SetString(std::forward<StringT>(value)); return *this;}
97
99
103 inline const AppSpecContent& GetAppSpecContent() const { return m_appSpecContent; }
104 inline bool AppSpecContentHasBeenSet() const { return m_appSpecContentHasBeenSet; }
105 template<typename AppSpecContentT = AppSpecContent>
106 void SetAppSpecContent(AppSpecContentT&& value) { m_appSpecContentHasBeenSet = true; m_appSpecContent = std::forward<AppSpecContentT>(value); }
107 template<typename AppSpecContentT = AppSpecContent>
108 RevisionLocation& WithAppSpecContent(AppSpecContentT&& value) { SetAppSpecContent(std::forward<AppSpecContentT>(value)); return *this;}
110 private:
111
113 bool m_revisionTypeHasBeenSet = false;
114
115 S3Location m_s3Location;
116 bool m_s3LocationHasBeenSet = false;
117
118 GitHubLocation m_gitHubLocation;
119 bool m_gitHubLocationHasBeenSet = false;
120
121 RawString m_string;
122 bool m_stringHasBeenSet = false;
123
124 AppSpecContent m_appSpecContent;
125 bool m_appSpecContentHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CodeDeploy
130} // namespace Aws
RevisionLocation & WithS3Location(S3LocationT &&value)
const S3Location & GetS3Location() const
AWS_CODEDEPLOY_API RevisionLocation()=default
const GitHubLocation & GetGitHubLocation() const
void SetAppSpecContent(AppSpecContentT &&value)
RevisionLocation & WithRevisionType(RevisionLocationType value)
RevisionLocationType GetRevisionType() const
AWS_CODEDEPLOY_API RevisionLocation(Aws::Utils::Json::JsonView jsonValue)
RevisionLocation & WithString(StringT &&value)
RevisionLocation & WithGitHubLocation(GitHubLocationT &&value)
AWS_CODEDEPLOY_API RevisionLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRevisionType(RevisionLocationType value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
RevisionLocation & WithAppSpecContent(AppSpecContentT &&value)
const AppSpecContent & GetAppSpecContent() const
void SetGitHubLocation(GitHubLocationT &&value)
Aws::Utils::Json::JsonValue JsonValue