AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AssociateEnvironmentRoleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace DataZone {
15namespace Model {
16
20 public:
21 AWS_DATAZONE_API AssociateEnvironmentRoleRequest() = 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 "AssociateEnvironmentRole"; }
28
29 AWS_DATAZONE_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
37 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
38 template <typename DomainIdentifierT = Aws::String>
39 void SetDomainIdentifier(DomainIdentifierT&& value) {
40 m_domainIdentifierHasBeenSet = true;
41 m_domainIdentifier = std::forward<DomainIdentifierT>(value);
42 }
43 template <typename DomainIdentifierT = Aws::String>
45 SetDomainIdentifier(std::forward<DomainIdentifierT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
55 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
56 template <typename EnvironmentIdentifierT = Aws::String>
57 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
58 m_environmentIdentifierHasBeenSet = true;
59 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
60 }
61 template <typename EnvironmentIdentifierT = Aws::String>
63 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetEnvironmentRoleArn() const { return m_environmentRoleArn; }
73 inline bool EnvironmentRoleArnHasBeenSet() const { return m_environmentRoleArnHasBeenSet; }
74 template <typename EnvironmentRoleArnT = Aws::String>
75 void SetEnvironmentRoleArn(EnvironmentRoleArnT&& value) {
76 m_environmentRoleArnHasBeenSet = true;
77 m_environmentRoleArn = std::forward<EnvironmentRoleArnT>(value);
78 }
79 template <typename EnvironmentRoleArnT = Aws::String>
81 SetEnvironmentRoleArn(std::forward<EnvironmentRoleArnT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_domainIdentifier;
87
88 Aws::String m_environmentIdentifier;
89
90 Aws::String m_environmentRoleArn;
91 bool m_domainIdentifierHasBeenSet = false;
92 bool m_environmentIdentifierHasBeenSet = false;
93 bool m_environmentRoleArnHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace DataZone
98} // namespace Aws
AWS_DATAZONE_API Aws::String SerializePayload() const override
AssociateEnvironmentRoleRequest & WithDomainIdentifier(DomainIdentifierT &&value)
AssociateEnvironmentRoleRequest & WithEnvironmentRoleArn(EnvironmentRoleArnT &&value)
AssociateEnvironmentRoleRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
AWS_DATAZONE_API AssociateEnvironmentRoleRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String