AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AlternatePathHint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API AlternatePathHint() = default;
31 AWS_EC2_API AlternatePathHint(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetComponentId() const { return m_componentId; }
42 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
43 template <typename ComponentIdT = Aws::String>
44 void SetComponentId(ComponentIdT&& value) {
45 m_componentIdHasBeenSet = true;
46 m_componentId = std::forward<ComponentIdT>(value);
47 }
48 template <typename ComponentIdT = Aws::String>
49 AlternatePathHint& WithComponentId(ComponentIdT&& value) {
50 SetComponentId(std::forward<ComponentIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetComponentArn() const { return m_componentArn; }
60 inline bool ComponentArnHasBeenSet() const { return m_componentArnHasBeenSet; }
61 template <typename ComponentArnT = Aws::String>
62 void SetComponentArn(ComponentArnT&& value) {
63 m_componentArnHasBeenSet = true;
64 m_componentArn = std::forward<ComponentArnT>(value);
65 }
66 template <typename ComponentArnT = Aws::String>
67 AlternatePathHint& WithComponentArn(ComponentArnT&& value) {
68 SetComponentArn(std::forward<ComponentArnT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_componentId;
74
75 Aws::String m_componentArn;
76 bool m_componentIdHasBeenSet = false;
77 bool m_componentArnHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
void SetComponentArn(ComponentArnT &&value)
AlternatePathHint & WithComponentArn(ComponentArnT &&value)
const Aws::String & GetComponentId() const
void SetComponentId(ComponentIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API AlternatePathHint(const Aws::Utils::Xml::XmlNode &xmlNode)
AlternatePathHint & WithComponentId(ComponentIdT &&value)
AWS_EC2_API AlternatePathHint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetComponentArn() const
AWS_EC2_API AlternatePathHint()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream