/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class GetIpamAddressHistoryRequest : public EC2Request { public: AWS_EC2_API GetIpamAddressHistoryRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetIpamAddressHistory"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

A check for whether you have the required permissions for the action without * actually making the request and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline GetIpamAddressHistoryRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline const Aws::String& GetCidr() const{ return m_cidr; } /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; } /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; } /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); } /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); } /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline GetIpamAddressHistoryRequest& WithCidr(const Aws::String& value) { SetCidr(value); return *this;} /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline GetIpamAddressHistoryRequest& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;} /** *

The CIDR you want the history of. The CIDR can be an IPv4 or IPv6 IP address * range. If you enter a /16 IPv4 CIDR, you will get records that match it exactly. * You will not get records for any subnets within the /16 CIDR.

*/ inline GetIpamAddressHistoryRequest& WithCidr(const char* value) { SetCidr(value); return *this;} /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline const Aws::String& GetIpamScopeId() const{ return m_ipamScopeId; } /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline bool IpamScopeIdHasBeenSet() const { return m_ipamScopeIdHasBeenSet; } /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline void SetIpamScopeId(const Aws::String& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = value; } /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline void SetIpamScopeId(Aws::String&& value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId = std::move(value); } /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline void SetIpamScopeId(const char* value) { m_ipamScopeIdHasBeenSet = true; m_ipamScopeId.assign(value); } /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline GetIpamAddressHistoryRequest& WithIpamScopeId(const Aws::String& value) { SetIpamScopeId(value); return *this;} /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline GetIpamAddressHistoryRequest& WithIpamScopeId(Aws::String&& value) { SetIpamScopeId(std::move(value)); return *this;} /** *

The ID of the IPAM scope that the CIDR is in.

*/ inline GetIpamAddressHistoryRequest& WithIpamScopeId(const char* value) { SetIpamScopeId(value); return *this;} /** *

The ID of the VPC you want your history records filtered by.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the VPC you want your history records filtered by.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the VPC you want your history records filtered by.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the VPC you want your history records filtered by.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the VPC you want your history records filtered by.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the VPC you want your history records filtered by.

*/ inline GetIpamAddressHistoryRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The ID of the VPC you want your history records filtered by.

*/ inline GetIpamAddressHistoryRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The ID of the VPC you want your history records filtered by.

*/ inline GetIpamAddressHistoryRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The start of the time period for which you are looking for history. If you * omit this option, it will default to the value of EndTime.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The start of the time period for which you are looking for history. If you * omit this option, it will default to the value of EndTime.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The start of the time period for which you are looking for history. If you * omit this option, it will default to the value of EndTime.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The start of the time period for which you are looking for history. If you * omit this option, it will default to the value of EndTime.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The start of the time period for which you are looking for history. If you * omit this option, it will default to the value of EndTime.

*/ inline GetIpamAddressHistoryRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The start of the time period for which you are looking for history. If you * omit this option, it will default to the value of EndTime.

*/ inline GetIpamAddressHistoryRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The end of the time period for which you are looking for history. If you omit * this option, it will default to the current time.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The end of the time period for which you are looking for history. If you omit * this option, it will default to the current time.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The end of the time period for which you are looking for history. If you omit * this option, it will default to the current time.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The end of the time period for which you are looking for history. If you omit * this option, it will default to the current time.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The end of the time period for which you are looking for history. If you omit * this option, it will default to the current time.

*/ inline GetIpamAddressHistoryRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The end of the time period for which you are looking for history. If you omit * this option, it will default to the current time.

*/ inline GetIpamAddressHistoryRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The maximum number of historical results you would like returned per page. * Defaults to 100.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of historical results you would like returned per page. * Defaults to 100.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of historical results you would like returned per page. * Defaults to 100.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of historical results you would like returned per page. * Defaults to 100.

*/ inline GetIpamAddressHistoryRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token for the next page of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next page of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next page of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next page of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next page of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next page of results.

*/ inline GetIpamAddressHistoryRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next page of results.

*/ inline GetIpamAddressHistoryRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next page of results.

*/ inline GetIpamAddressHistoryRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_cidr; bool m_cidrHasBeenSet = false; Aws::String m_ipamScopeId; bool m_ipamScopeIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws