AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
UpdateRoleAliasRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IoT {
15namespace Model {
16
20 public:
21 AWS_IOT_API UpdateRoleAliasRequest() = 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 "UpdateRoleAlias"; }
28
29 AWS_IOT_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetRoleAlias() const { return m_roleAlias; }
36 inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
37 template <typename RoleAliasT = Aws::String>
38 void SetRoleAlias(RoleAliasT&& value) {
39 m_roleAliasHasBeenSet = true;
40 m_roleAlias = std::forward<RoleAliasT>(value);
41 }
42 template <typename RoleAliasT = Aws::String>
44 SetRoleAlias(std::forward<RoleAliasT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
54 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
55 template <typename RoleArnT = Aws::String>
56 void SetRoleArn(RoleArnT&& value) {
57 m_roleArnHasBeenSet = true;
58 m_roleArn = std::forward<RoleArnT>(value);
59 }
60 template <typename RoleArnT = Aws::String>
62 SetRoleArn(std::forward<RoleArnT>(value));
63 return *this;
64 }
66
68
73 inline int GetCredentialDurationSeconds() const { return m_credentialDurationSeconds; }
74 inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
75 inline void SetCredentialDurationSeconds(int value) {
76 m_credentialDurationSecondsHasBeenSet = true;
77 m_credentialDurationSeconds = value;
78 }
81 return *this;
82 }
84 private:
85 Aws::String m_roleAlias;
86
87 Aws::String m_roleArn;
88
89 int m_credentialDurationSeconds{0};
90 bool m_roleAliasHasBeenSet = false;
91 bool m_roleArnHasBeenSet = false;
92 bool m_credentialDurationSecondsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace IoT
97} // namespace Aws
UpdateRoleAliasRequest & WithRoleAlias(RoleAliasT &&value)
AWS_IOT_API UpdateRoleAliasRequest()=default
UpdateRoleAliasRequest & WithCredentialDurationSeconds(int value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API Aws::String SerializePayload() const override
UpdateRoleAliasRequest & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String