AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateRoleAliasRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoT
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IOT_API CreateRoleAliasRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRoleAlias"; }
33
34 AWS_IOT_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetRoleAlias() const { return m_roleAlias; }
43 inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
44 template<typename RoleAliasT = Aws::String>
45 void SetRoleAlias(RoleAliasT&& value) { m_roleAliasHasBeenSet = true; m_roleAlias = std::forward<RoleAliasT>(value); }
46 template<typename RoleAliasT = Aws::String>
47 CreateRoleAliasRequest& WithRoleAlias(RoleAliasT&& value) { SetRoleAlias(std::forward<RoleAliasT>(value)); return *this;}
49
51
54 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
55 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
56 template<typename RoleArnT = Aws::String>
57 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
58 template<typename RoleArnT = Aws::String>
59 CreateRoleAliasRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
61
63
68 inline int GetCredentialDurationSeconds() const { return m_credentialDurationSeconds; }
69 inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
70 inline void SetCredentialDurationSeconds(int value) { m_credentialDurationSecondsHasBeenSet = true; m_credentialDurationSeconds = value; }
73
75
82 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Vector<Tag>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Vector<Tag>>
87 CreateRoleAliasRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsT = Tag>
89 CreateRoleAliasRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
91 private:
92
93 Aws::String m_roleAlias;
94 bool m_roleAliasHasBeenSet = false;
95
96 Aws::String m_roleArn;
97 bool m_roleArnHasBeenSet = false;
98
99 int m_credentialDurationSeconds{0};
100 bool m_credentialDurationSecondsHasBeenSet = false;
101
102 Aws::Vector<Tag> m_tags;
103 bool m_tagsHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace IoT
108} // namespace Aws
CreateRoleAliasRequest & WithRoleAlias(RoleAliasT &&value)
CreateRoleAliasRequest & AddTags(TagsT &&value)
CreateRoleAliasRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
AWS_IOT_API CreateRoleAliasRequest()=default
CreateRoleAliasRequest & WithCredentialDurationSeconds(int value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateRoleAliasRequest & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector