AWS SDK for C++  1.9.154
AWS SDK for C++
DescribeInstanceAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Connect
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "DescribeInstanceAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
41 
46  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 
52  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 
58  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
59 
64  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
65 
70  inline DescribeInstanceAttributeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
76  inline DescribeInstanceAttributeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
77 
82  inline DescribeInstanceAttributeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
83 
84 
88  inline const InstanceAttributeType& GetAttributeType() const{ return m_attributeType; }
89 
93  inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
94 
98  inline void SetAttributeType(const InstanceAttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
99 
103  inline void SetAttributeType(InstanceAttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
104 
108  inline DescribeInstanceAttributeRequest& WithAttributeType(const InstanceAttributeType& value) { SetAttributeType(value); return *this;}
109 
113  inline DescribeInstanceAttributeRequest& WithAttributeType(InstanceAttributeType&& value) { SetAttributeType(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_instanceId;
118  bool m_instanceIdHasBeenSet;
119 
120  InstanceAttributeType m_attributeType;
121  bool m_attributeTypeHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace Connect
126 } // namespace Aws
Aws::Connect::Model::DescribeInstanceAttributeRequest::WithInstanceId
DescribeInstanceAttributeRequest & WithInstanceId(Aws::String &&value)
Definition: DescribeInstanceAttributeRequest.h:76
Aws::Connect::Model::DescribeInstanceAttributeRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DescribeInstanceAttributeRequest.h:58
Aws::Connect::Model::DescribeInstanceAttributeRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DescribeInstanceAttributeRequest.h:40
Aws::Connect::Model::DescribeInstanceAttributeRequest::GetAttributeType
const InstanceAttributeType & GetAttributeType() const
Definition: DescribeInstanceAttributeRequest.h:88
Aws::Connect::Model::InstanceAttributeType
InstanceAttributeType
Definition: InstanceAttributeType.h:17
Aws::Connect::Model::DescribeInstanceAttributeRequest::AttributeTypeHasBeenSet
bool AttributeTypeHasBeenSet() const
Definition: DescribeInstanceAttributeRequest.h:93
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::DescribeInstanceAttributeRequest::DescribeInstanceAttributeRequest
DescribeInstanceAttributeRequest()
Aws::Connect::Model::DescribeInstanceAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::DescribeInstanceAttributeRequest::WithAttributeType
DescribeInstanceAttributeRequest & WithAttributeType(const InstanceAttributeType &value)
Definition: DescribeInstanceAttributeRequest.h:108
Aws::Connect::Model::DescribeInstanceAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstanceAttributeRequest.h:31
AWSString.h
Aws::Connect::Model::DescribeInstanceAttributeRequest::SetAttributeType
void SetAttributeType(const InstanceAttributeType &value)
Definition: DescribeInstanceAttributeRequest.h:98
Aws::Connect::Model::DescribeInstanceAttributeRequest::WithAttributeType
DescribeInstanceAttributeRequest & WithAttributeType(InstanceAttributeType &&value)
Definition: DescribeInstanceAttributeRequest.h:113
InstanceAttributeType.h
Aws::Connect::Model::DescribeInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DescribeInstanceAttributeRequest.h:52
Aws::Connect::Model::DescribeInstanceAttributeRequest
Definition: DescribeInstanceAttributeRequest.h:23
Aws::Connect::Model::DescribeInstanceAttributeRequest::SetAttributeType
void SetAttributeType(InstanceAttributeType &&value)
Definition: DescribeInstanceAttributeRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::DescribeInstanceAttributeRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: DescribeInstanceAttributeRequest.h:46
Aws::Connect::Model::DescribeInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: DescribeInstanceAttributeRequest.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::DescribeInstanceAttributeRequest::WithInstanceId
DescribeInstanceAttributeRequest & WithInstanceId(const Aws::String &value)
Definition: DescribeInstanceAttributeRequest.h:70
Aws::Connect::Model::DescribeInstanceAttributeRequest::WithInstanceId
DescribeInstanceAttributeRequest & WithInstanceId(const char *value)
Definition: DescribeInstanceAttributeRequest.h:82