AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateTrustAnchorRequest.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rolesanywhere/model/Source.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RolesAnywhere
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ROLESANYWHERE_API UpdateTrustAnchorRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateTrustAnchor"; }
32
33 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const{ return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
43 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
44 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
45 inline UpdateTrustAnchorRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
46 inline UpdateTrustAnchorRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
47 inline UpdateTrustAnchorRequest& WithName(const char* value) { SetName(value); return *this;}
49
51
54 inline const Source& GetSource() const{ return m_source; }
55 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
56 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
57 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
58 inline UpdateTrustAnchorRequest& WithSource(const Source& value) { SetSource(value); return *this;}
59 inline UpdateTrustAnchorRequest& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
61
63
66 inline const Aws::String& GetTrustAnchorId() const{ return m_trustAnchorId; }
67 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
68 inline void SetTrustAnchorId(const Aws::String& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = value; }
69 inline void SetTrustAnchorId(Aws::String&& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = std::move(value); }
70 inline void SetTrustAnchorId(const char* value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId.assign(value); }
71 inline UpdateTrustAnchorRequest& WithTrustAnchorId(const Aws::String& value) { SetTrustAnchorId(value); return *this;}
72 inline UpdateTrustAnchorRequest& WithTrustAnchorId(Aws::String&& value) { SetTrustAnchorId(std::move(value)); return *this;}
73 inline UpdateTrustAnchorRequest& WithTrustAnchorId(const char* value) { SetTrustAnchorId(value); return *this;}
75 private:
76
77 Aws::String m_name;
78 bool m_nameHasBeenSet = false;
79
80 Source m_source;
81 bool m_sourceHasBeenSet = false;
82
83 Aws::String m_trustAnchorId;
84 bool m_trustAnchorIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace RolesAnywhere
89} // namespace Aws
UpdateTrustAnchorRequest & WithName(const char *value)
UpdateTrustAnchorRequest & WithTrustAnchorId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateTrustAnchorRequest & WithTrustAnchorId(const char *value)
UpdateTrustAnchorRequest & WithName(Aws::String &&value)
UpdateTrustAnchorRequest & WithSource(Source &&value)
UpdateTrustAnchorRequest & WithTrustAnchorId(Aws::String &&value)
UpdateTrustAnchorRequest & WithName(const Aws::String &value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
UpdateTrustAnchorRequest & WithSource(const Source &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String