AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateRoleAliasRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace IoT
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_IOT_API UpdateRoleAliasRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateRoleAlias"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetRoleAlias() const { return m_roleAlias; }
40 inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
41 template<typename RoleAliasT = Aws::String>
42 void SetRoleAlias(RoleAliasT&& value) { m_roleAliasHasBeenSet = true; m_roleAlias = std::forward<RoleAliasT>(value); }
43 template<typename RoleAliasT = Aws::String>
44 UpdateRoleAliasRequest& WithRoleAlias(RoleAliasT&& value) { SetRoleAlias(std::forward<RoleAliasT>(value)); return *this;}
46
48
51 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
52 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
53 template<typename RoleArnT = Aws::String>
54 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
55 template<typename RoleArnT = Aws::String>
56 UpdateRoleAliasRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
58
60
65 inline int GetCredentialDurationSeconds() const { return m_credentialDurationSeconds; }
66 inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
67 inline void SetCredentialDurationSeconds(int value) { m_credentialDurationSecondsHasBeenSet = true; m_credentialDurationSeconds = value; }
70 private:
71
72 Aws::String m_roleAlias;
73 bool m_roleAliasHasBeenSet = false;
74
75 Aws::String m_roleArn;
76 bool m_roleArnHasBeenSet = false;
77
78 int m_credentialDurationSeconds{0};
79 bool m_credentialDurationSecondsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace IoT
84} // 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