AWS SDK for C++  1.9.72
AWS SDK for C++
DescribeInstanceStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeInstanceStatus"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
78  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
79 
117  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
118 
156  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
157 
195  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
196 
234  inline DescribeInstanceStatusRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
235 
273  inline DescribeInstanceStatusRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
274 
312  inline DescribeInstanceStatusRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
313 
351  inline DescribeInstanceStatusRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
352 
353 
358  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
359 
364  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
365 
370  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
371 
376  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
377 
382  inline DescribeInstanceStatusRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
383 
388  inline DescribeInstanceStatusRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
389 
394  inline DescribeInstanceStatusRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
395 
400  inline DescribeInstanceStatusRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
401 
406  inline DescribeInstanceStatusRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
407 
408 
415  inline int GetMaxResults() const{ return m_maxResults; }
416 
423  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
424 
431  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
432 
439  inline DescribeInstanceStatusRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
440 
441 
445  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
446 
450  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
451 
455  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
456 
460  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
461 
465  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
466 
470  inline DescribeInstanceStatusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
471 
475  inline DescribeInstanceStatusRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
476 
480  inline DescribeInstanceStatusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
481 
482 
489  inline bool GetDryRun() const{ return m_dryRun; }
490 
497  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
498 
505  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
506 
513  inline DescribeInstanceStatusRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
514 
515 
521  inline bool GetIncludeAllInstances() const{ return m_includeAllInstances; }
522 
528  inline bool IncludeAllInstancesHasBeenSet() const { return m_includeAllInstancesHasBeenSet; }
529 
535  inline void SetIncludeAllInstances(bool value) { m_includeAllInstancesHasBeenSet = true; m_includeAllInstances = value; }
536 
542  inline DescribeInstanceStatusRequest& WithIncludeAllInstances(bool value) { SetIncludeAllInstances(value); return *this;}
543 
544  private:
545 
546  Aws::Vector<Filter> m_filters;
547  bool m_filtersHasBeenSet;
548 
549  Aws::Vector<Aws::String> m_instanceIds;
550  bool m_instanceIdsHasBeenSet;
551 
552  int m_maxResults;
553  bool m_maxResultsHasBeenSet;
554 
555  Aws::String m_nextToken;
556  bool m_nextTokenHasBeenSet;
557 
558  bool m_dryRun;
559  bool m_dryRunHasBeenSet;
560 
561  bool m_includeAllInstances;
562  bool m_includeAllInstancesHasBeenSet;
563  };
564 
565 } // namespace Model
566 } // namespace EC2
567 } // namespace Aws
Aws::EC2::Model::DescribeInstanceStatusRequest::WithNextToken
DescribeInstanceStatusRequest & WithNextToken(const char *value)
Definition: DescribeInstanceStatusRequest.h:480
Aws::EC2::Model::DescribeInstanceStatusRequest::DescribeInstanceStatusRequest
DescribeInstanceStatusRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeInstanceStatusRequest::WithDryRun
DescribeInstanceStatusRequest & WithDryRun(bool value)
Definition: DescribeInstanceStatusRequest.h:513
Aws::EC2::Model::DescribeInstanceStatusRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeInstanceStatusRequest::IncludeAllInstancesHasBeenSet
bool IncludeAllInstancesHasBeenSet() const
Definition: DescribeInstanceStatusRequest.h:528
Aws::EC2::Model::DescribeInstanceStatusRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeInstanceStatusRequest.h:117
Aws::EC2::Model::DescribeInstanceStatusRequest::WithInstanceIds
DescribeInstanceStatusRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInstanceStatusRequest.h:382
Aws::EC2::Model::DescribeInstanceStatusRequest::GetIncludeAllInstances
bool GetIncludeAllInstances() const
Definition: DescribeInstanceStatusRequest.h:521
Aws::EC2::Model::DescribeInstanceStatusRequest::WithNextToken
DescribeInstanceStatusRequest & WithNextToken(const Aws::String &value)
Definition: DescribeInstanceStatusRequest.h:470
Aws::EC2::Model::DescribeInstanceStatusRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeInstanceStatusRequest.h:431
Aws::EC2::Model::DescribeInstanceStatusRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeInstanceStatusRequest.h:195
Aws::EC2::Model::DescribeInstanceStatusRequest::AddInstanceIds
DescribeInstanceStatusRequest & AddInstanceIds(const Aws::String &value)
Definition: DescribeInstanceStatusRequest.h:394
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeInstanceStatusRequest::WithNextToken
DescribeInstanceStatusRequest & WithNextToken(Aws::String &&value)
Definition: DescribeInstanceStatusRequest.h:475
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::EC2::Model::DescribeInstanceStatusRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeInstanceStatusRequest.h:370
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeInstanceStatusRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeInstanceStatusRequest.h:415
Aws::EC2::Model::DescribeInstanceStatusRequest::WithMaxResults
DescribeInstanceStatusRequest & WithMaxResults(int value)
Definition: DescribeInstanceStatusRequest.h:439
Aws::EC2::Model::DescribeInstanceStatusRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeInstanceStatusRequest.h:450
Aws::EC2::Model::DescribeInstanceStatusRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInstanceStatusRequest.h:376
Aws::EC2::Model::DescribeInstanceStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeInstanceStatusRequest.h:32
AWSVector.h
Aws::EC2::Model::DescribeInstanceStatusRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeInstanceStatusRequest.h:156
Filter.h
Aws::EC2::Model::DescribeInstanceStatusRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeInstanceStatusRequest.h:489
Aws::EC2::Model::DescribeInstanceStatusRequest
Definition: DescribeInstanceStatusRequest.h:24
Aws::EC2::Model::DescribeInstanceStatusRequest::AddFilters
DescribeInstanceStatusRequest & AddFilters(Filter &&value)
Definition: DescribeInstanceStatusRequest.h:351
Aws::EC2::Model::DescribeInstanceStatusRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: DescribeInstanceStatusRequest.h:358
Aws::EC2::Model::DescribeInstanceStatusRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeInstanceStatusRequest.h:423
Aws::EC2::Model::DescribeInstanceStatusRequest::WithInstanceIds
DescribeInstanceStatusRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeInstanceStatusRequest.h:388
Aws::EC2::Model::DescribeInstanceStatusRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeInstanceStatusRequest.h:465
Aws::EC2::Model::DescribeInstanceStatusRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeInstanceStatusRequest.h:445
Aws::EC2::Model::DescribeInstanceStatusRequest::AddFilters
DescribeInstanceStatusRequest & AddFilters(const Filter &value)
Definition: DescribeInstanceStatusRequest.h:312
EC2Request.h
Aws::EC2::Model::DescribeInstanceStatusRequest::WithIncludeAllInstances
DescribeInstanceStatusRequest & WithIncludeAllInstances(bool value)
Definition: DescribeInstanceStatusRequest.h:542
Aws::EC2::Model::DescribeInstanceStatusRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeInstanceStatusRequest.h:460
Aws::EC2::Model::DescribeInstanceStatusRequest::AddInstanceIds
DescribeInstanceStatusRequest & AddInstanceIds(const char *value)
Definition: DescribeInstanceStatusRequest.h:406
AWSString.h
Aws::EC2::Model::DescribeInstanceStatusRequest::WithFilters
DescribeInstanceStatusRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeInstanceStatusRequest.h:234
Aws::EC2::Model::DescribeInstanceStatusRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: DescribeInstanceStatusRequest.h:364
Aws::EC2::Model::DescribeInstanceStatusRequest::SetIncludeAllInstances
void SetIncludeAllInstances(bool value)
Definition: DescribeInstanceStatusRequest.h:535
Aws::EC2::Model::DescribeInstanceStatusRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeInstanceStatusRequest.h:505
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeInstanceStatusRequest::WithFilters
DescribeInstanceStatusRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeInstanceStatusRequest.h:273
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeInstanceStatusRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeInstanceStatusRequest.h:78
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeInstanceStatusRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeInstanceStatusRequest.h:497
Aws::EC2::Model::DescribeInstanceStatusRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeInstanceStatusRequest.h:455
Aws::EC2::Model::DescribeInstanceStatusRequest::AddInstanceIds
DescribeInstanceStatusRequest & AddInstanceIds(Aws::String &&value)
Definition: DescribeInstanceStatusRequest.h:400
EC2_EXPORTS.h
Aws::EC2::Model::DescribeInstanceStatusRequest::SerializePayload
Aws::String SerializePayload() const override