AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetAccessGrantsLocationResult.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Xml
20{
21 class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3Control
25{
26namespace Model
27{
29 {
30 public:
31 AWS_S3CONTROL_API GetAccessGrantsLocationResult() = default;
34
35
37
40 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
41 template<typename CreatedAtT = Aws::Utils::DateTime>
42 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
43 template<typename CreatedAtT = Aws::Utils::DateTime>
44 GetAccessGrantsLocationResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
46
48
54 inline const Aws::String& GetAccessGrantsLocationId() const { return m_accessGrantsLocationId; }
55 template<typename AccessGrantsLocationIdT = Aws::String>
56 void SetAccessGrantsLocationId(AccessGrantsLocationIdT&& value) { m_accessGrantsLocationIdHasBeenSet = true; m_accessGrantsLocationId = std::forward<AccessGrantsLocationIdT>(value); }
57 template<typename AccessGrantsLocationIdT = Aws::String>
58 GetAccessGrantsLocationResult& WithAccessGrantsLocationId(AccessGrantsLocationIdT&& value) { SetAccessGrantsLocationId(std::forward<AccessGrantsLocationIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetAccessGrantsLocationArn() const { return m_accessGrantsLocationArn; }
66 template<typename AccessGrantsLocationArnT = Aws::String>
67 void SetAccessGrantsLocationArn(AccessGrantsLocationArnT&& value) { m_accessGrantsLocationArnHasBeenSet = true; m_accessGrantsLocationArn = std::forward<AccessGrantsLocationArnT>(value); }
68 template<typename AccessGrantsLocationArnT = Aws::String>
69 GetAccessGrantsLocationResult& WithAccessGrantsLocationArn(AccessGrantsLocationArnT&& value) { SetAccessGrantsLocationArn(std::forward<AccessGrantsLocationArnT>(value)); return *this;}
71
73
82 inline const Aws::String& GetLocationScope() const { return m_locationScope; }
83 template<typename LocationScopeT = Aws::String>
84 void SetLocationScope(LocationScopeT&& value) { m_locationScopeHasBeenSet = true; m_locationScope = std::forward<LocationScopeT>(value); }
85 template<typename LocationScopeT = Aws::String>
86 GetAccessGrantsLocationResult& WithLocationScope(LocationScopeT&& value) { SetLocationScope(std::forward<LocationScopeT>(value)); return *this;}
88
90
95 inline const Aws::String& GetIAMRoleArn() const { return m_iAMRoleArn; }
96 template<typename IAMRoleArnT = Aws::String>
97 void SetIAMRoleArn(IAMRoleArnT&& value) { m_iAMRoleArnHasBeenSet = true; m_iAMRoleArn = std::forward<IAMRoleArnT>(value); }
98 template<typename IAMRoleArnT = Aws::String>
99 GetAccessGrantsLocationResult& WithIAMRoleArn(IAMRoleArnT&& value) { SetIAMRoleArn(std::forward<IAMRoleArnT>(value)); return *this;}
101
103
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 template<typename RequestIdT = Aws::String>
108 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
109 template<typename RequestIdT = Aws::String>
110 GetAccessGrantsLocationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
112
114
117 inline const Aws::String& GetHostId() const { return m_hostId; }
118 template<typename HostIdT = Aws::String>
119 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet = true; m_hostId = std::forward<HostIdT>(value); }
120 template<typename HostIdT = Aws::String>
121 GetAccessGrantsLocationResult& WithHostId(HostIdT&& value) { SetHostId(std::forward<HostIdT>(value)); return *this;}
123 private:
124
125 Aws::Utils::DateTime m_createdAt{};
126 bool m_createdAtHasBeenSet = false;
127
128 Aws::String m_accessGrantsLocationId;
129 bool m_accessGrantsLocationIdHasBeenSet = false;
130
131 Aws::String m_accessGrantsLocationArn;
132 bool m_accessGrantsLocationArnHasBeenSet = false;
133
134 Aws::String m_locationScope;
135 bool m_locationScopeHasBeenSet = false;
136
137 Aws::String m_iAMRoleArn;
138 bool m_iAMRoleArnHasBeenSet = false;
139
140 Aws::String m_requestId;
141 bool m_requestIdHasBeenSet = false;
142
143 Aws::String m_hostId;
144 bool m_hostIdHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace S3Control
149} // namespace Aws
GetAccessGrantsLocationResult & WithLocationScope(LocationScopeT &&value)
GetAccessGrantsLocationResult & WithCreatedAt(CreatedAtT &&value)
GetAccessGrantsLocationResult & WithRequestId(RequestIdT &&value)
GetAccessGrantsLocationResult & WithAccessGrantsLocationArn(AccessGrantsLocationArnT &&value)
GetAccessGrantsLocationResult & WithAccessGrantsLocationId(AccessGrantsLocationIdT &&value)
GetAccessGrantsLocationResult & WithIAMRoleArn(IAMRoleArnT &&value)
void SetAccessGrantsLocationArn(AccessGrantsLocationArnT &&value)
AWS_S3CONTROL_API GetAccessGrantsLocationResult()=default
AWS_S3CONTROL_API GetAccessGrantsLocationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetAccessGrantsLocationResult & WithHostId(HostIdT &&value)
AWS_S3CONTROL_API GetAccessGrantsLocationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument