AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExternalAuthorityConfiguration.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#include <aws/ec2/model/IpamScopeExternalAuthorityType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
35 public:
36 AWS_EC2_API ExternalAuthorityConfiguration() = default;
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
44
47 inline IpamScopeExternalAuthorityType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
54 SetType(value);
55 return *this;
56 }
58
60
65 inline const Aws::String& GetExternalResourceIdentifier() const { return m_externalResourceIdentifier; }
66 inline bool ExternalResourceIdentifierHasBeenSet() const { return m_externalResourceIdentifierHasBeenSet; }
67 template <typename ExternalResourceIdentifierT = Aws::String>
68 void SetExternalResourceIdentifier(ExternalResourceIdentifierT&& value) {
69 m_externalResourceIdentifierHasBeenSet = true;
70 m_externalResourceIdentifier = std::forward<ExternalResourceIdentifierT>(value);
71 }
72 template <typename ExternalResourceIdentifierT = Aws::String>
73 ExternalAuthorityConfiguration& WithExternalResourceIdentifier(ExternalResourceIdentifierT&& value) {
74 SetExternalResourceIdentifier(std::forward<ExternalResourceIdentifierT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::String m_externalResourceIdentifier;
82 bool m_typeHasBeenSet = false;
83 bool m_externalResourceIdentifierHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace EC2
88} // namespace Aws
void SetExternalResourceIdentifier(ExternalResourceIdentifierT &&value)
ExternalAuthorityConfiguration & WithType(IpamScopeExternalAuthorityType value)
ExternalAuthorityConfiguration & WithExternalResourceIdentifier(ExternalResourceIdentifierT &&value)
AWS_EC2_API ExternalAuthorityConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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 ExternalAuthorityConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetType(IpamScopeExternalAuthorityType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream