AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyDescription.h
1
6#pragma once
7#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticloadbalancing/model/PolicyAttributeDescription.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancing
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ELASTICLOADBALANCING_API PolicyDescription();
37 AWS_ELASTICLOADBALANCING_API PolicyDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_ELASTICLOADBALANCING_API PolicyDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
49 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
51 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
52 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
53 inline PolicyDescription& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
54 inline PolicyDescription& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
55 inline PolicyDescription& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
57
59
62 inline const Aws::String& GetPolicyTypeName() const{ return m_policyTypeName; }
63 inline bool PolicyTypeNameHasBeenSet() const { return m_policyTypeNameHasBeenSet; }
64 inline void SetPolicyTypeName(const Aws::String& value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName = value; }
65 inline void SetPolicyTypeName(Aws::String&& value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName = std::move(value); }
66 inline void SetPolicyTypeName(const char* value) { m_policyTypeNameHasBeenSet = true; m_policyTypeName.assign(value); }
67 inline PolicyDescription& WithPolicyTypeName(const Aws::String& value) { SetPolicyTypeName(value); return *this;}
68 inline PolicyDescription& WithPolicyTypeName(Aws::String&& value) { SetPolicyTypeName(std::move(value)); return *this;}
69 inline PolicyDescription& WithPolicyTypeName(const char* value) { SetPolicyTypeName(value); return *this;}
71
73
76 inline const Aws::Vector<PolicyAttributeDescription>& GetPolicyAttributeDescriptions() const{ return m_policyAttributeDescriptions; }
77 inline bool PolicyAttributeDescriptionsHasBeenSet() const { return m_policyAttributeDescriptionsHasBeenSet; }
78 inline void SetPolicyAttributeDescriptions(const Aws::Vector<PolicyAttributeDescription>& value) { m_policyAttributeDescriptionsHasBeenSet = true; m_policyAttributeDescriptions = value; }
79 inline void SetPolicyAttributeDescriptions(Aws::Vector<PolicyAttributeDescription>&& value) { m_policyAttributeDescriptionsHasBeenSet = true; m_policyAttributeDescriptions = std::move(value); }
82 inline PolicyDescription& AddPolicyAttributeDescriptions(const PolicyAttributeDescription& value) { m_policyAttributeDescriptionsHasBeenSet = true; m_policyAttributeDescriptions.push_back(value); return *this; }
83 inline PolicyDescription& AddPolicyAttributeDescriptions(PolicyAttributeDescription&& value) { m_policyAttributeDescriptionsHasBeenSet = true; m_policyAttributeDescriptions.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_policyName;
88 bool m_policyNameHasBeenSet = false;
89
90 Aws::String m_policyTypeName;
91 bool m_policyTypeNameHasBeenSet = false;
92
93 Aws::Vector<PolicyAttributeDescription> m_policyAttributeDescriptions;
94 bool m_policyAttributeDescriptionsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ElasticLoadBalancing
99} // namespace Aws
PolicyDescription & AddPolicyAttributeDescriptions(const PolicyAttributeDescription &value)
PolicyDescription & WithPolicyTypeName(const char *value)
void SetPolicyAttributeDescriptions(const Aws::Vector< PolicyAttributeDescription > &value)
PolicyDescription & WithPolicyName(Aws::String &&value)
PolicyDescription & WithPolicyAttributeDescriptions(Aws::Vector< PolicyAttributeDescription > &&value)
PolicyDescription & WithPolicyTypeName(const Aws::String &value)
PolicyDescription & WithPolicyTypeName(Aws::String &&value)
const Aws::Vector< PolicyAttributeDescription > & GetPolicyAttributeDescriptions() const
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCING_API PolicyDescription()
PolicyDescription & AddPolicyAttributeDescriptions(PolicyAttributeDescription &&value)
void SetPolicyAttributeDescriptions(Aws::Vector< PolicyAttributeDescription > &&value)
AWS_ELASTICLOADBALANCING_API PolicyDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyDescription & WithPolicyName(const char *value)
AWS_ELASTICLOADBALANCING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCING_API PolicyDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyDescription & WithPolicyName(const Aws::String &value)
PolicyDescription & WithPolicyAttributeDescriptions(const Aws::Vector< PolicyAttributeDescription > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream