AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codedeploy/model/ComputePlatform.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codedeploy/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_CODEDEPLOY_API CreateApplicationRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
38
39 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
40
42
43
45
49 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
50 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
51 template<typename ApplicationNameT = Aws::String>
52 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
53 template<typename ApplicationNameT = Aws::String>
54 CreateApplicationRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
56
58
62 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
63 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
64 inline void SetComputePlatform(ComputePlatform value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
67
69
74 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 template<typename TagsT = Aws::Vector<Tag>>
77 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
78 template<typename TagsT = Aws::Vector<Tag>>
79 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
80 template<typename TagsT = Tag>
81 CreateApplicationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
83 private:
84
85 Aws::String m_applicationName;
86 bool m_applicationNameHasBeenSet = false;
87
89 bool m_computePlatformHasBeenSet = false;
90
91 Aws::Vector<Tag> m_tags;
92 bool m_tagsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeDeploy
97} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
AWS_CODEDEPLOY_API CreateApplicationRequest()=default
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateApplicationRequest & AddTags(TagsT &&value)
CreateApplicationRequest & WithTags(TagsT &&value)
CreateApplicationRequest & WithComputePlatform(ComputePlatform value)
CreateApplicationRequest & WithApplicationName(ApplicationNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector