/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GameLift { namespace Model { /** *

Represents an authorization for a VPC peering connection between the VPC for * an Amazon GameLift fleet and another VPC on an account you have access to. This * authorization must exist and be valid for the peering connection to be * established. Authorizations are valid for 24 hours after they are issued.

*

Related actions

All * APIs by task

See Also:

AWS * API Reference

*/ class VpcPeeringAuthorization { public: AWS_GAMELIFT_API VpcPeeringAuthorization(); AWS_GAMELIFT_API VpcPeeringAuthorization(Aws::Utils::Json::JsonView jsonValue); AWS_GAMELIFT_API VpcPeeringAuthorization& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline const Aws::String& GetGameLiftAwsAccountId() const{ return m_gameLiftAwsAccountId; } /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline bool GameLiftAwsAccountIdHasBeenSet() const { return m_gameLiftAwsAccountIdHasBeenSet; } /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline void SetGameLiftAwsAccountId(const Aws::String& value) { m_gameLiftAwsAccountIdHasBeenSet = true; m_gameLiftAwsAccountId = value; } /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline void SetGameLiftAwsAccountId(Aws::String&& value) { m_gameLiftAwsAccountIdHasBeenSet = true; m_gameLiftAwsAccountId = std::move(value); } /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline void SetGameLiftAwsAccountId(const char* value) { m_gameLiftAwsAccountIdHasBeenSet = true; m_gameLiftAwsAccountId.assign(value); } /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline VpcPeeringAuthorization& WithGameLiftAwsAccountId(const Aws::String& value) { SetGameLiftAwsAccountId(value); return *this;} /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline VpcPeeringAuthorization& WithGameLiftAwsAccountId(Aws::String&& value) { SetGameLiftAwsAccountId(std::move(value)); return *this;} /** *

A unique identifier for the Amazon Web Services account that you use to * manage your Amazon GameLift fleet. You can find your Account ID in the Amazon * Web Services Management Console under account settings.

*/ inline VpcPeeringAuthorization& WithGameLiftAwsAccountId(const char* value) { SetGameLiftAwsAccountId(value); return *this;} /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline const Aws::String& GetPeerVpcAwsAccountId() const{ return m_peerVpcAwsAccountId; } /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline bool PeerVpcAwsAccountIdHasBeenSet() const { return m_peerVpcAwsAccountIdHasBeenSet; } /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline void SetPeerVpcAwsAccountId(const Aws::String& value) { m_peerVpcAwsAccountIdHasBeenSet = true; m_peerVpcAwsAccountId = value; } /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline void SetPeerVpcAwsAccountId(Aws::String&& value) { m_peerVpcAwsAccountIdHasBeenSet = true; m_peerVpcAwsAccountId = std::move(value); } /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline void SetPeerVpcAwsAccountId(const char* value) { m_peerVpcAwsAccountIdHasBeenSet = true; m_peerVpcAwsAccountId.assign(value); } /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline VpcPeeringAuthorization& WithPeerVpcAwsAccountId(const Aws::String& value) { SetPeerVpcAwsAccountId(value); return *this;} /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline VpcPeeringAuthorization& WithPeerVpcAwsAccountId(Aws::String&& value) { SetPeerVpcAwsAccountId(std::move(value)); return *this;} /** *

The authorization's peer VPC Amazon Web Services account ID.

*/ inline VpcPeeringAuthorization& WithPeerVpcAwsAccountId(const char* value) { SetPeerVpcAwsAccountId(value); return *this;} /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline const Aws::String& GetPeerVpcId() const{ return m_peerVpcId; } /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; } /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline void SetPeerVpcId(const Aws::String& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = value; } /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline void SetPeerVpcId(Aws::String&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::move(value); } /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline void SetPeerVpcId(const char* value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId.assign(value); } /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline VpcPeeringAuthorization& WithPeerVpcId(const Aws::String& value) { SetPeerVpcId(value); return *this;} /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline VpcPeeringAuthorization& WithPeerVpcId(Aws::String&& value) { SetPeerVpcId(std::move(value)); return *this;} /** *

A unique identifier for a VPC with resources to be accessed by your Amazon * GameLift fleet. The VPC must be in the same Region as your fleet. To look up a * VPC ID, use the VPC Dashboard * in the Amazon Web Services Management Console. Learn more about VPC peering in * VPC * Peering with Amazon GameLift Fleets.

*/ inline VpcPeeringAuthorization& WithPeerVpcId(const char* value) { SetPeerVpcId(value); return *this;} /** *

Time stamp indicating when this authorization was issued. Format is a number * expressed in Unix time as milliseconds (for example * "1469498468.057").

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

Time stamp indicating when this authorization was issued. Format is a number * expressed in Unix time as milliseconds (for example * "1469498468.057").

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

Time stamp indicating when this authorization was issued. Format is a number * expressed in Unix time as milliseconds (for example * "1469498468.057").

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

Time stamp indicating when this authorization was issued. Format is a number * expressed in Unix time as milliseconds (for example * "1469498468.057").

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

Time stamp indicating when this authorization was issued. Format is a number * expressed in Unix time as milliseconds (for example * "1469498468.057").

*/ inline VpcPeeringAuthorization& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

Time stamp indicating when this authorization was issued. Format is a number * expressed in Unix time as milliseconds (for example * "1469498468.057").

*/ inline VpcPeeringAuthorization& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

Time stamp indicating when this authorization expires (24 hours after * issuance). Format is a number expressed in Unix time as milliseconds (for * example "1469498468.057").

*/ inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; } /** *

Time stamp indicating when this authorization expires (24 hours after * issuance). Format is a number expressed in Unix time as milliseconds (for * example "1469498468.057").

*/ inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; } /** *

Time stamp indicating when this authorization expires (24 hours after * issuance). Format is a number expressed in Unix time as milliseconds (for * example "1469498468.057").

*/ inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; } /** *

Time stamp indicating when this authorization expires (24 hours after * issuance). Format is a number expressed in Unix time as milliseconds (for * example "1469498468.057").

*/ inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); } /** *

Time stamp indicating when this authorization expires (24 hours after * issuance). Format is a number expressed in Unix time as milliseconds (for * example "1469498468.057").

*/ inline VpcPeeringAuthorization& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;} /** *

Time stamp indicating when this authorization expires (24 hours after * issuance). Format is a number expressed in Unix time as milliseconds (for * example "1469498468.057").

*/ inline VpcPeeringAuthorization& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;} private: Aws::String m_gameLiftAwsAccountId; bool m_gameLiftAwsAccountIdHasBeenSet = false; Aws::String m_peerVpcAwsAccountId; bool m_peerVpcAwsAccountIdHasBeenSet = false; Aws::String m_peerVpcId; bool m_peerVpcIdHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_expirationTime; bool m_expirationTimeHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws