AWS SDK for C++  1.9.175
AWS SDK for C++
Listener.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace ElasticBeanstalk
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetProtocol() const{ return m_protocol; }
47 
51  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
52 
56  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
57 
61  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
62 
66  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
67 
71  inline Listener& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
72 
76  inline Listener& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
77 
81  inline Listener& WithProtocol(const char* value) { SetProtocol(value); return *this;}
82 
83 
87  inline int GetPort() const{ return m_port; }
88 
92  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
93 
97  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
98 
102  inline Listener& WithPort(int value) { SetPort(value); return *this;}
103 
104  private:
105 
106  Aws::String m_protocol;
107  bool m_protocolHasBeenSet;
108 
109  int m_port;
110  bool m_portHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace ElasticBeanstalk
115 } // namespace Aws
Aws::ElasticBeanstalk::Model::Listener::GetProtocol
const Aws::String & GetProtocol() const
Definition: Listener.h:46
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::Listener::WithProtocol
Listener & WithProtocol(Aws::String &&value)
Definition: Listener.h:76
Aws::ElasticBeanstalk::Model::Listener::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: Listener.h:51
Aws::ElasticBeanstalk::Model::Listener::SetPort
void SetPort(int value)
Definition: Listener.h:97
Aws::ElasticBeanstalk::Model::Listener::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: Listener.h:61
Aws::ElasticBeanstalk::Model::Listener::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: Listener.h:56
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::ElasticBeanstalk::Model::Listener::WithProtocol
Listener & WithProtocol(const char *value)
Definition: Listener.h:81
Aws::ElasticBeanstalk::Model::Listener::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticBeanstalk::Model::Listener::Listener
Listener()
AWSString.h
Aws::ElasticBeanstalk::Model::Listener::GetPort
int GetPort() const
Definition: Listener.h:87
Aws::ElasticBeanstalk::Model::Listener::WithPort
Listener & WithPort(int value)
Definition: Listener.h:102
Aws::ElasticBeanstalk::Model::Listener::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::Listener::PortHasBeenSet
bool PortHasBeenSet() const
Definition: Listener.h:92
Aws::ElasticBeanstalk::Model::Listener
Definition: Listener.h:33
Aws::ElasticBeanstalk::Model::Listener::operator=
Listener & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::Listener::Listener
Listener(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticBeanstalk::Model::Listener::WithProtocol
Listener & WithProtocol(const Aws::String &value)
Definition: Listener.h:71
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::ElasticBeanstalk::Model::Listener::SetProtocol
void SetProtocol(const char *value)
Definition: Listener.h:66