AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AssociateEnvironmentOperationsRoleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ElasticBeanstalk {
15namespace Model {
16
24 public:
25 AWS_ELASTICBEANSTALK_API AssociateEnvironmentOperationsRoleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateEnvironmentOperationsRole"; }
32
33 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
44 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
45 template <typename EnvironmentNameT = Aws::String>
46 void SetEnvironmentName(EnvironmentNameT&& value) {
47 m_environmentNameHasBeenSet = true;
48 m_environmentName = std::forward<EnvironmentNameT>(value);
49 }
50 template <typename EnvironmentNameT = Aws::String>
52 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
63 inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; }
64 template <typename OperationsRoleT = Aws::String>
65 void SetOperationsRole(OperationsRoleT&& value) {
66 m_operationsRoleHasBeenSet = true;
67 m_operationsRole = std::forward<OperationsRoleT>(value);
68 }
69 template <typename OperationsRoleT = Aws::String>
71 SetOperationsRole(std::forward<OperationsRoleT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_environmentName;
77
78 Aws::String m_operationsRole;
79 bool m_environmentNameHasBeenSet = false;
80 bool m_operationsRoleHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace ElasticBeanstalk
85} // namespace Aws
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AssociateEnvironmentOperationsRoleRequest & WithOperationsRole(OperationsRoleT &&value)
AWS_ELASTICBEANSTALK_API AssociateEnvironmentOperationsRoleRequest()=default
AssociateEnvironmentOperationsRoleRequest & WithEnvironmentName(EnvironmentNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String