AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeLocationS3Result.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/S3StorageClass.h>
10#include <aws/datasync/model/S3Config.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataSync
28{
29namespace Model
30{
37 {
38 public:
39 AWS_DATASYNC_API DescribeLocationS3Result() = default;
42
43
45
48 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
49 template<typename LocationArnT = Aws::String>
50 void SetLocationArn(LocationArnT&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::forward<LocationArnT>(value); }
51 template<typename LocationArnT = Aws::String>
52 DescribeLocationS3Result& WithLocationArn(LocationArnT&& value) { SetLocationArn(std::forward<LocationArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetLocationUri() const { return m_locationUri; }
60 template<typename LocationUriT = Aws::String>
61 void SetLocationUri(LocationUriT&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::forward<LocationUriT>(value); }
62 template<typename LocationUriT = Aws::String>
63 DescribeLocationS3Result& WithLocationUri(LocationUriT&& value) { SetLocationUri(std::forward<LocationUriT>(value)); return *this;}
65
67
74 inline S3StorageClass GetS3StorageClass() const { return m_s3StorageClass; }
75 inline void SetS3StorageClass(S3StorageClass value) { m_s3StorageClassHasBeenSet = true; m_s3StorageClass = value; }
78
80
81 inline const S3Config& GetS3Config() const { return m_s3Config; }
82 template<typename S3ConfigT = S3Config>
83 void SetS3Config(S3ConfigT&& value) { m_s3ConfigHasBeenSet = true; m_s3Config = std::forward<S3ConfigT>(value); }
84 template<typename S3ConfigT = S3Config>
85 DescribeLocationS3Result& WithS3Config(S3ConfigT&& value) { SetS3Config(std::forward<S3ConfigT>(value)); return *this;}
87
89
95 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
96 template<typename AgentArnsT = Aws::Vector<Aws::String>>
97 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
98 template<typename AgentArnsT = Aws::Vector<Aws::String>>
99 DescribeLocationS3Result& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
100 template<typename AgentArnsT = Aws::String>
101 DescribeLocationS3Result& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
103
105
108 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
109 template<typename CreationTimeT = Aws::Utils::DateTime>
110 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
111 template<typename CreationTimeT = Aws::Utils::DateTime>
112 DescribeLocationS3Result& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template<typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
120 template<typename RequestIdT = Aws::String>
121 DescribeLocationS3Result& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
123 private:
124
125 Aws::String m_locationArn;
126 bool m_locationArnHasBeenSet = false;
127
128 Aws::String m_locationUri;
129 bool m_locationUriHasBeenSet = false;
130
131 S3StorageClass m_s3StorageClass{S3StorageClass::NOT_SET};
132 bool m_s3StorageClassHasBeenSet = false;
133
134 S3Config m_s3Config;
135 bool m_s3ConfigHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_agentArns;
138 bool m_agentArnsHasBeenSet = false;
139
140 Aws::Utils::DateTime m_creationTime{};
141 bool m_creationTimeHasBeenSet = false;
142
143 Aws::String m_requestId;
144 bool m_requestIdHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace DataSync
149} // namespace Aws
AWS_DATASYNC_API DescribeLocationS3Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLocationS3Result & WithS3StorageClass(S3StorageClass value)
DescribeLocationS3Result & AddAgentArns(AgentArnsT &&value)
DescribeLocationS3Result & WithLocationArn(LocationArnT &&value)
DescribeLocationS3Result & WithAgentArns(AgentArnsT &&value)
const Aws::Vector< Aws::String > & GetAgentArns() const
DescribeLocationS3Result & WithS3Config(S3ConfigT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_DATASYNC_API DescribeLocationS3Result()=default
AWS_DATASYNC_API DescribeLocationS3Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeLocationS3Result & WithLocationUri(LocationUriT &&value)
DescribeLocationS3Result & WithRequestId(RequestIdT &&value)
DescribeLocationS3Result & WithCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue