/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the Amazon Web Services Region. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Region implements Serializable, Cloneable, StructuredPojo { /** *
* The continent code (e.g., NA
, meaning North America).
*
* The description of the Amazon Web Services Region (e.g.,
* This region is recommended to serve users in the eastern United States and eastern Canada
).
*
* The display name (e.g., Ohio
).
*
* The region name (e.g., us-east-2
).
*
* The Availability Zones. Follows the format us-east-2a
(case-sensitive).
*
* The Availability Zones for databases. Follows the format us-east-2a
(case-sensitive).
*
* The continent code (e.g., NA
, meaning North America).
*
NA
, meaning North America).
*/
public void setContinentCode(String continentCode) {
this.continentCode = continentCode;
}
/**
*
* The continent code (e.g., NA
, meaning North America).
*
NA
, meaning North America).
*/
public String getContinentCode() {
return this.continentCode;
}
/**
*
* The continent code (e.g., NA
, meaning North America).
*
NA
, meaning North America).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Region withContinentCode(String continentCode) {
setContinentCode(continentCode);
return this;
}
/**
*
* The description of the Amazon Web Services Region (e.g.,
* This region is recommended to serve users in the eastern United States and eastern Canada
).
*
This region is recommended to serve users in the eastern United States and eastern Canada
).
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the Amazon Web Services Region (e.g.,
* This region is recommended to serve users in the eastern United States and eastern Canada
).
*
This region is recommended to serve users in the eastern United States and eastern Canada
).
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the Amazon Web Services Region (e.g.,
* This region is recommended to serve users in the eastern United States and eastern Canada
).
*
This region is recommended to serve users in the eastern United States and eastern Canada
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Region withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The display name (e.g., Ohio
).
*
Ohio
).
*/
public void setDisplayName(String displayName) {
this.displayName = displayName;
}
/**
*
* The display name (e.g., Ohio
).
*
Ohio
).
*/
public String getDisplayName() {
return this.displayName;
}
/**
*
* The display name (e.g., Ohio
).
*
Ohio
).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Region withDisplayName(String displayName) {
setDisplayName(displayName);
return this;
}
/**
*
* The region name (e.g., us-east-2
).
*
us-east-2
).
* @see RegionName
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The region name (e.g., us-east-2
).
*
us-east-2
).
* @see RegionName
*/
public String getName() {
return this.name;
}
/**
*
* The region name (e.g., us-east-2
).
*
us-east-2
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see RegionName
*/
public Region withName(String name) {
setName(name);
return this;
}
/**
*
* The region name (e.g., us-east-2
).
*
us-east-2
).
* @see RegionName
*/
public void setName(RegionName name) {
withName(name);
}
/**
*
* The region name (e.g., us-east-2
).
*
us-east-2
).
* @return Returns a reference to this object so that method calls can be chained together.
* @see RegionName
*/
public Region withName(RegionName name) {
this.name = name.toString();
return this;
}
/**
*
* The Availability Zones. Follows the format us-east-2a
(case-sensitive).
*
us-east-2a
(case-sensitive).
*/
public java.util.List
* The Availability Zones. Follows the format us-east-2a
(case-sensitive).
*
us-east-2a
(case-sensitive).
*/
public void setAvailabilityZones(java.util.Collection
* The Availability Zones. Follows the format us-east-2a
(case-sensitive).
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAvailabilityZones(java.util.Collection)} or {@link #withAvailabilityZones(java.util.Collection)} if * you want to override the existing values. *
* * @param availabilityZones * The Availability Zones. Follows the formatus-east-2a
(case-sensitive).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Region withAvailabilityZones(AvailabilityZone... availabilityZones) {
if (this.availabilityZones == null) {
setAvailabilityZones(new java.util.ArrayList
* The Availability Zones. Follows the format us-east-2a
(case-sensitive).
*
us-east-2a
(case-sensitive).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Region withAvailabilityZones(java.util.Collection
* The Availability Zones for databases. Follows the format us-east-2a
(case-sensitive).
*
us-east-2a
(case-sensitive).
*/
public java.util.List
* The Availability Zones for databases. Follows the format us-east-2a
(case-sensitive).
*
us-east-2a
(case-sensitive).
*/
public void setRelationalDatabaseAvailabilityZones(java.util.Collection
* The Availability Zones for databases. Follows the format us-east-2a
(case-sensitive).
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRelationalDatabaseAvailabilityZones(java.util.Collection)} or * {@link #withRelationalDatabaseAvailabilityZones(java.util.Collection)} if you want to override the existing * values. *
* * @param relationalDatabaseAvailabilityZones * The Availability Zones for databases. Follows the formatus-east-2a
(case-sensitive).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Region withRelationalDatabaseAvailabilityZones(AvailabilityZone... relationalDatabaseAvailabilityZones) {
if (this.relationalDatabaseAvailabilityZones == null) {
setRelationalDatabaseAvailabilityZones(new java.util.ArrayList
* The Availability Zones for databases. Follows the format us-east-2a
(case-sensitive).
*
us-east-2a
(case-sensitive).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Region withRelationalDatabaseAvailabilityZones(java.util.Collection