AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
GetScopedCredentialsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sts/STSRequest.h>
9#include <aws/sts/STS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace STS {
15namespace Model {
16
20 public:
21 AWS_STS_API GetScopedCredentialsRequest() = 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 "GetScopedCredentials"; }
28
29 AWS_STS_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_STS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
54 inline const Aws::String& GetPolicy() const { return m_policy; }
55 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
56 template <typename PolicyT = Aws::String>
57 void SetPolicy(PolicyT&& value) {
58 m_policyHasBeenSet = true;
59 m_policy = std::forward<PolicyT>(value);
60 }
61 template <typename PolicyT = Aws::String>
63 SetPolicy(std::forward<PolicyT>(value));
64 return *this;
65 }
67
69
75 inline int GetDurationSeconds() const { return m_durationSeconds; }
76 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
77 inline void SetDurationSeconds(int value) {
78 m_durationSecondsHasBeenSet = true;
79 m_durationSeconds = value;
80 }
82 SetDurationSeconds(value);
83 return *this;
84 }
86
88
89 inline int GetMinimumSessionTokenSize() const { return m_minimumSessionTokenSize; }
90 inline bool MinimumSessionTokenSizeHasBeenSet() const { return m_minimumSessionTokenSizeHasBeenSet; }
91 inline void SetMinimumSessionTokenSize(int value) {
92 m_minimumSessionTokenSizeHasBeenSet = true;
93 m_minimumSessionTokenSize = value;
94 }
97 return *this;
98 }
100
102
107 inline const Aws::String& GetScopedSessionDescription() const { return m_scopedSessionDescription; }
108 inline bool ScopedSessionDescriptionHasBeenSet() const { return m_scopedSessionDescriptionHasBeenSet; }
109 template <typename ScopedSessionDescriptionT = Aws::String>
110 void SetScopedSessionDescription(ScopedSessionDescriptionT&& value) {
111 m_scopedSessionDescriptionHasBeenSet = true;
112 m_scopedSessionDescription = std::forward<ScopedSessionDescriptionT>(value);
113 }
114 template <typename ScopedSessionDescriptionT = Aws::String>
115 GetScopedCredentialsRequest& WithScopedSessionDescription(ScopedSessionDescriptionT&& value) {
116 SetScopedSessionDescription(std::forward<ScopedSessionDescriptionT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_policy;
122
123 int m_durationSeconds{0};
124
125 int m_minimumSessionTokenSize{0};
126
127 Aws::String m_scopedSessionDescription;
128 bool m_policyHasBeenSet = false;
129 bool m_durationSecondsHasBeenSet = false;
130 bool m_minimumSessionTokenSizeHasBeenSet = false;
131 bool m_scopedSessionDescriptionHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace STS
136} // namespace Aws
AWS_STS_API Aws::String SerializePayload() const override
AWS_STS_API GetScopedCredentialsRequest()=default
GetScopedCredentialsRequest & WithScopedSessionDescription(ScopedSessionDescriptionT &&value)
void SetScopedSessionDescription(ScopedSessionDescriptionT &&value)
AWS_STS_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetScopedCredentialsRequest & WithPolicy(PolicyT &&value)
GetScopedCredentialsRequest & WithDurationSeconds(int value)
GetScopedCredentialsRequest & WithMinimumSessionTokenSize(int value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String