AWS SDK for C++  1.9.66
AWS SDK for C++
DescribeImagesRequest.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 "DescribeImages"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
46  inline const Aws::Vector<Aws::String>& GetExecutableUsers() const{ return m_executableUsers; }
47 
53  inline bool ExecutableUsersHasBeenSet() const { return m_executableUsersHasBeenSet; }
54 
60  inline void SetExecutableUsers(const Aws::Vector<Aws::String>& value) { m_executableUsersHasBeenSet = true; m_executableUsers = value; }
61 
67  inline void SetExecutableUsers(Aws::Vector<Aws::String>&& value) { m_executableUsersHasBeenSet = true; m_executableUsers = std::move(value); }
68 
74  inline DescribeImagesRequest& WithExecutableUsers(const Aws::Vector<Aws::String>& value) { SetExecutableUsers(value); return *this;}
75 
81  inline DescribeImagesRequest& WithExecutableUsers(Aws::Vector<Aws::String>&& value) { SetExecutableUsers(std::move(value)); return *this;}
82 
88  inline DescribeImagesRequest& AddExecutableUsers(const Aws::String& value) { m_executableUsersHasBeenSet = true; m_executableUsers.push_back(value); return *this; }
89 
95  inline DescribeImagesRequest& AddExecutableUsers(Aws::String&& value) { m_executableUsersHasBeenSet = true; m_executableUsers.push_back(std::move(value)); return *this; }
96 
102  inline DescribeImagesRequest& AddExecutableUsers(const char* value) { m_executableUsersHasBeenSet = true; m_executableUsers.push_back(value); return *this; }
103 
104 
166  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
167 
229  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
230 
292  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
293 
355  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
356 
418  inline DescribeImagesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
419 
481  inline DescribeImagesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
482 
544  inline DescribeImagesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
545 
607  inline DescribeImagesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
608 
609 
613  inline const Aws::Vector<Aws::String>& GetImageIds() const{ return m_imageIds; }
614 
618  inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
619 
623  inline void SetImageIds(const Aws::Vector<Aws::String>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
624 
628  inline void SetImageIds(Aws::Vector<Aws::String>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
629 
633  inline DescribeImagesRequest& WithImageIds(const Aws::Vector<Aws::String>& value) { SetImageIds(value); return *this;}
634 
638  inline DescribeImagesRequest& WithImageIds(Aws::Vector<Aws::String>&& value) { SetImageIds(std::move(value)); return *this;}
639 
643  inline DescribeImagesRequest& AddImageIds(const Aws::String& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
644 
648  inline DescribeImagesRequest& AddImageIds(Aws::String&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
649 
653  inline DescribeImagesRequest& AddImageIds(const char* value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
654 
655 
662  inline const Aws::Vector<Aws::String>& GetOwners() const{ return m_owners; }
663 
670  inline bool OwnersHasBeenSet() const { return m_ownersHasBeenSet; }
671 
678  inline void SetOwners(const Aws::Vector<Aws::String>& value) { m_ownersHasBeenSet = true; m_owners = value; }
679 
686  inline void SetOwners(Aws::Vector<Aws::String>&& value) { m_ownersHasBeenSet = true; m_owners = std::move(value); }
687 
694  inline DescribeImagesRequest& WithOwners(const Aws::Vector<Aws::String>& value) { SetOwners(value); return *this;}
695 
702  inline DescribeImagesRequest& WithOwners(Aws::Vector<Aws::String>&& value) { SetOwners(std::move(value)); return *this;}
703 
710  inline DescribeImagesRequest& AddOwners(const Aws::String& value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
711 
718  inline DescribeImagesRequest& AddOwners(Aws::String&& value) { m_ownersHasBeenSet = true; m_owners.push_back(std::move(value)); return *this; }
719 
726  inline DescribeImagesRequest& AddOwners(const char* value) { m_ownersHasBeenSet = true; m_owners.push_back(value); return *this; }
727 
728 
737  inline bool GetIncludeDeprecated() const{ return m_includeDeprecated; }
738 
747  inline bool IncludeDeprecatedHasBeenSet() const { return m_includeDeprecatedHasBeenSet; }
748 
757  inline void SetIncludeDeprecated(bool value) { m_includeDeprecatedHasBeenSet = true; m_includeDeprecated = value; }
758 
767  inline DescribeImagesRequest& WithIncludeDeprecated(bool value) { SetIncludeDeprecated(value); return *this;}
768 
769 
776  inline bool GetDryRun() const{ return m_dryRun; }
777 
784  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
785 
792  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
793 
800  inline DescribeImagesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
801 
802  private:
803 
804  Aws::Vector<Aws::String> m_executableUsers;
805  bool m_executableUsersHasBeenSet;
806 
807  Aws::Vector<Filter> m_filters;
808  bool m_filtersHasBeenSet;
809 
810  Aws::Vector<Aws::String> m_imageIds;
811  bool m_imageIdsHasBeenSet;
812 
813  Aws::Vector<Aws::String> m_owners;
814  bool m_ownersHasBeenSet;
815 
816  bool m_includeDeprecated;
817  bool m_includeDeprecatedHasBeenSet;
818 
819  bool m_dryRun;
820  bool m_dryRunHasBeenSet;
821  };
822 
823 } // namespace Model
824 } // namespace EC2
825 } // namespace Aws
Aws::EC2::Model::DescribeImagesRequest::AddOwners
DescribeImagesRequest & AddOwners(const char *value)
Definition: DescribeImagesRequest.h:726
Aws::EC2::Model::DescribeImagesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeImagesRequest::GetExecutableUsers
const Aws::Vector< Aws::String > & GetExecutableUsers() const
Definition: DescribeImagesRequest.h:46
Aws::EC2::Model::DescribeImagesRequest::AddOwners
DescribeImagesRequest & AddOwners(Aws::String &&value)
Definition: DescribeImagesRequest.h:718
Aws::EC2::Model::DescribeImagesRequest::WithDryRun
DescribeImagesRequest & WithDryRun(bool value)
Definition: DescribeImagesRequest.h:800
Aws::EC2::Model::DescribeImagesRequest::OwnersHasBeenSet
bool OwnersHasBeenSet() const
Definition: DescribeImagesRequest.h:670
Aws::EC2::Model::DescribeImagesRequest::WithExecutableUsers
DescribeImagesRequest & WithExecutableUsers(Aws::Vector< Aws::String > &&value)
Definition: DescribeImagesRequest.h:81
Aws::EC2::Model::DescribeImagesRequest::AddImageIds
DescribeImagesRequest & AddImageIds(const Aws::String &value)
Definition: DescribeImagesRequest.h:643
Aws::EC2::Model::DescribeImagesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeImagesRequest.h:166
Aws::EC2::Model::DescribeImagesRequest::WithFilters
DescribeImagesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeImagesRequest.h:481
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeImagesRequest::SetOwners
void SetOwners(Aws::Vector< Aws::String > &&value)
Definition: DescribeImagesRequest.h:686
Aws::EC2::Model::DescribeImagesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeImagesRequest.h:229
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeImagesRequest::AddFilters
DescribeImagesRequest & AddFilters(Filter &&value)
Definition: DescribeImagesRequest.h:607
Aws::EC2::Model::DescribeImagesRequest::DescribeImagesRequest
DescribeImagesRequest()
Aws::EC2::Model::DescribeImagesRequest::AddExecutableUsers
DescribeImagesRequest & AddExecutableUsers(Aws::String &&value)
Definition: DescribeImagesRequest.h:95
Aws::EC2::Model::DescribeImagesRequest::AddImageIds
DescribeImagesRequest & AddImageIds(const char *value)
Definition: DescribeImagesRequest.h:653
Aws::EC2::Model::DescribeImagesRequest::WithImageIds
DescribeImagesRequest & WithImageIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeImagesRequest.h:633
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeImagesRequest::WithOwners
DescribeImagesRequest & WithOwners(Aws::Vector< Aws::String > &&value)
Definition: DescribeImagesRequest.h:702
Aws::EC2::Model::DescribeImagesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeImagesRequest.h:32
Aws::EC2::Model::DescribeImagesRequest::WithIncludeDeprecated
DescribeImagesRequest & WithIncludeDeprecated(bool value)
Definition: DescribeImagesRequest.h:767
Aws::EC2::Model::DescribeImagesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeImagesRequest.h:355
Aws::EC2::Model::DescribeImagesRequest::SetExecutableUsers
void SetExecutableUsers(Aws::Vector< Aws::String > &&value)
Definition: DescribeImagesRequest.h:67
Aws::EC2::Model::DescribeImagesRequest::AddExecutableUsers
DescribeImagesRequest & AddExecutableUsers(const Aws::String &value)
Definition: DescribeImagesRequest.h:88
EC2Request.h
Aws::EC2::Model::DescribeImagesRequest::IncludeDeprecatedHasBeenSet
bool IncludeDeprecatedHasBeenSet() const
Definition: DescribeImagesRequest.h:747
Aws::EC2::Model::DescribeImagesRequest::ExecutableUsersHasBeenSet
bool ExecutableUsersHasBeenSet() const
Definition: DescribeImagesRequest.h:53
Aws::EC2::Model::DescribeImagesRequest::WithOwners
DescribeImagesRequest & WithOwners(const Aws::Vector< Aws::String > &value)
Definition: DescribeImagesRequest.h:694
AWSString.h
Aws::EC2::Model::DescribeImagesRequest::SetOwners
void SetOwners(const Aws::Vector< Aws::String > &value)
Definition: DescribeImagesRequest.h:678
Aws::EC2::Model::DescribeImagesRequest::SetImageIds
void SetImageIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeImagesRequest.h:628
Aws::EC2::Model::DescribeImagesRequest::GetIncludeDeprecated
bool GetIncludeDeprecated() const
Definition: DescribeImagesRequest.h:737
Aws::EC2::Model::DescribeImagesRequest::SetImageIds
void SetImageIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeImagesRequest.h:623
Aws::EC2::Model::DescribeImagesRequest::SetExecutableUsers
void SetExecutableUsers(const Aws::Vector< Aws::String > &value)
Definition: DescribeImagesRequest.h:60
Aws::EC2::Model::DescribeImagesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeImagesRequest.h:292
Aws::EC2::Model::DescribeImagesRequest::GetOwners
const Aws::Vector< Aws::String > & GetOwners() const
Definition: DescribeImagesRequest.h:662
Aws::EC2::Model::DescribeImagesRequest::SetIncludeDeprecated
void SetIncludeDeprecated(bool value)
Definition: DescribeImagesRequest.h:757
Aws::EC2::Model::DescribeImagesRequest::AddImageIds
DescribeImagesRequest & AddImageIds(Aws::String &&value)
Definition: DescribeImagesRequest.h:648
Aws::EC2::Model::DescribeImagesRequest::WithImageIds
DescribeImagesRequest & WithImageIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeImagesRequest.h:638
Aws::EC2::Model::DescribeImagesRequest::ImageIdsHasBeenSet
bool ImageIdsHasBeenSet() const
Definition: DescribeImagesRequest.h:618
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeImagesRequest::AddFilters
DescribeImagesRequest & AddFilters(const Filter &value)
Definition: DescribeImagesRequest.h:544
Aws::EC2::Model::DescribeImagesRequest::GetImageIds
const Aws::Vector< Aws::String > & GetImageIds() const
Definition: DescribeImagesRequest.h:613
Aws::EC2::Model::DescribeImagesRequest::AddExecutableUsers
DescribeImagesRequest & AddExecutableUsers(const char *value)
Definition: DescribeImagesRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeImagesRequest
Definition: DescribeImagesRequest.h:24
Aws::EC2::Model::DescribeImagesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeImagesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeImagesRequest.h:792
Aws::EC2::Model::DescribeImagesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeImagesRequest.h:784
Aws::EC2::Model::DescribeImagesRequest::WithFilters
DescribeImagesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeImagesRequest.h:418
EC2_EXPORTS.h
Aws::EC2::Model::DescribeImagesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeImagesRequest.h:776
Aws::EC2::Model::DescribeImagesRequest::AddOwners
DescribeImagesRequest & AddOwners(const Aws::String &value)
Definition: DescribeImagesRequest.h:710
Aws::EC2::Model::DescribeImagesRequest::WithExecutableUsers
DescribeImagesRequest & WithExecutableUsers(const Aws::Vector< Aws::String > &value)
Definition: DescribeImagesRequest.h:74