AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateBuildRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace GameLift {
15namespace Model {
16
20 public:
21 AWS_GAMELIFT_API UpdateBuildRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateBuild"; }
28
29 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetBuildId() const { return m_buildId; }
39 inline bool BuildIdHasBeenSet() const { return m_buildIdHasBeenSet; }
40 template <typename BuildIdT = Aws::String>
41 void SetBuildId(BuildIdT&& value) {
42 m_buildIdHasBeenSet = true;
43 m_buildId = std::forward<BuildIdT>(value);
44 }
45 template <typename BuildIdT = Aws::String>
46 UpdateBuildRequest& WithBuildId(BuildIdT&& value) {
47 SetBuildId(std::forward<BuildIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 UpdateBuildRequest& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetVersion() const { return m_version; }
77 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
78 template <typename VersionT = Aws::String>
79 void SetVersion(VersionT&& value) {
80 m_versionHasBeenSet = true;
81 m_version = std::forward<VersionT>(value);
82 }
83 template <typename VersionT = Aws::String>
84 UpdateBuildRequest& WithVersion(VersionT&& value) {
85 SetVersion(std::forward<VersionT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_buildId;
91
92 Aws::String m_name;
93
94 Aws::String m_version;
95 bool m_buildIdHasBeenSet = false;
96 bool m_nameHasBeenSet = false;
97 bool m_versionHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace GameLift
102} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateBuildRequest & WithVersion(VersionT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API Aws::String SerializePayload() const override
UpdateBuildRequest & WithBuildId(BuildIdT &&value)
AWS_GAMELIFT_API UpdateBuildRequest()=default
UpdateBuildRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String