AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
DescribeChapCredentialsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11#include <aws/storagegateway/model/ChapInfo.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace StorageGateway {
25namespace Model {
32 public:
33 AWS_STORAGEGATEWAY_API DescribeChapCredentialsResult() = default;
36
38
52 inline const Aws::Vector<ChapInfo>& GetChapCredentials() const { return m_chapCredentials; }
53 template <typename ChapCredentialsT = Aws::Vector<ChapInfo>>
54 void SetChapCredentials(ChapCredentialsT&& value) {
55 m_chapCredentialsHasBeenSet = true;
56 m_chapCredentials = std::forward<ChapCredentialsT>(value);
57 }
58 template <typename ChapCredentialsT = Aws::Vector<ChapInfo>>
60 SetChapCredentials(std::forward<ChapCredentialsT>(value));
61 return *this;
62 }
63 template <typename ChapCredentialsT = ChapInfo>
65 m_chapCredentialsHasBeenSet = true;
66 m_chapCredentials.emplace_back(std::forward<ChapCredentialsT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 Aws::Vector<ChapInfo> m_chapCredentials;
89
90 Aws::String m_requestId;
91 Aws::Http::HttpResponseCode m_HttpResponseCode;
92 bool m_chapCredentialsHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace StorageGateway
98} // namespace Aws
DescribeChapCredentialsResult & WithChapCredentials(ChapCredentialsT &&value)
AWS_STORAGEGATEWAY_API DescribeChapCredentialsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeChapCredentialsResult & WithRequestId(RequestIdT &&value)
DescribeChapCredentialsResult & AddChapCredentials(ChapCredentialsT &&value)
AWS_STORAGEGATEWAY_API DescribeChapCredentialsResult()=default
AWS_STORAGEGATEWAY_API DescribeChapCredentialsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue