com.vmware.avi.sdk.model.IpamDnsAwsProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of avisdk Show documentation
Show all versions of avisdk Show documentation
Avi SDK is a java API which creates a session with controller and perform CRUD operations.
The newest version!
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* The IpamDnsAwsProfile is a POJO class extends AviRestResource that used for creating
* IpamDnsAwsProfile.
*
* @version 1.0
* @since
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class IpamDnsAwsProfile {
@JsonProperty("access_key_id")
private String accessKeyId;
@JsonProperty("egress_service_subnets")
private List egressServiceSubnets;
@JsonProperty("iam_assume_role")
private String iamAssumeRole;
@JsonProperty("publish_vip_to_public_zone")
private Boolean publishVipToPublicZone = false;
@JsonProperty("region")
private String region;
@JsonProperty("secret_access_key")
private String secretAccessKey;
@JsonProperty("ttl")
private Integer ttl = 60;
@JsonProperty("usable_domains")
private List usableDomains;
@JsonProperty("usable_network_uuids")
private List usableNetworkUuids;
@JsonProperty("use_iam_roles")
private Boolean useIamRoles = false;
@JsonProperty("vpc")
private String vpc;
@JsonProperty("vpc_id")
private String vpcId;
@JsonProperty("zones")
private List zones;
/**
* This is the getter method this will return the attribute value.
* Aws access key id.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return accessKeyId
*/
public String getAccessKeyId() {
return accessKeyId;
}
/**
* This is the setter method to the attribute.
* Aws access key id.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param accessKeyId set the accessKeyId.
*/
public void setAccessKeyId(String accessKeyId) {
this.accessKeyId = accessKeyId;
}
/**
* This is the getter method this will return the attribute value.
* A list of subnets used for source ip allocation for egress services in openshift/k8s on aws.
* Field introduced in 18.2.3.
* Maximum of 1 items allowed.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return egressServiceSubnets
*/
public List getEgressServiceSubnets() {
return egressServiceSubnets;
}
/**
* This is the setter method. this will set the egressServiceSubnets
* A list of subnets used for source ip allocation for egress services in openshift/k8s on aws.
* Field introduced in 18.2.3.
* Maximum of 1 items allowed.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return egressServiceSubnets
*/
public void setEgressServiceSubnets(List egressServiceSubnets) {
this.egressServiceSubnets = egressServiceSubnets;
}
/**
* This is the setter method this will set the egressServiceSubnets
* A list of subnets used for source ip allocation for egress services in openshift/k8s on aws.
* Field introduced in 18.2.3.
* Maximum of 1 items allowed.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return egressServiceSubnets
*/
public IpamDnsAwsProfile addEgressServiceSubnetsItem(String egressServiceSubnetsItem) {
if (this.egressServiceSubnets == null) {
this.egressServiceSubnets = new ArrayList();
}
this.egressServiceSubnets.add(egressServiceSubnetsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Iam assume role for cross-account access.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return iamAssumeRole
*/
public String getIamAssumeRole() {
return iamAssumeRole;
}
/**
* This is the setter method to the attribute.
* Iam assume role for cross-account access.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param iamAssumeRole set the iamAssumeRole.
*/
public void setIamAssumeRole(String iamAssumeRole) {
this.iamAssumeRole = iamAssumeRole;
}
/**
* This is the getter method this will return the attribute value.
* If enabled and the virtual service is not floating ip capable, vip will be published to both private and public zones.
* This flag is applicable only for aws dns profile.
* Field introduced in 17.2.10.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @return publishVipToPublicZone
*/
public Boolean getPublishVipToPublicZone() {
return publishVipToPublicZone;
}
/**
* This is the setter method to the attribute.
* If enabled and the virtual service is not floating ip capable, vip will be published to both private and public zones.
* This flag is applicable only for aws dns profile.
* Field introduced in 17.2.10.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @param publishVipToPublicZone set the publishVipToPublicZone.
*/
public void setPublishVipToPublicZone(Boolean publishVipToPublicZone) {
this.publishVipToPublicZone = publishVipToPublicZone;
}
/**
* This is the getter method this will return the attribute value.
* Aws region.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return region
*/
public String getRegion() {
return region;
}
/**
* This is the setter method to the attribute.
* Aws region.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param region set the region.
*/
public void setRegion(String region) {
this.region = region;
}
/**
* This is the getter method this will return the attribute value.
* Aws secret access key.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return secretAccessKey
*/
public String getSecretAccessKey() {
return secretAccessKey;
}
/**
* This is the setter method to the attribute.
* Aws secret access key.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param secretAccessKey set the secretAccessKey.
*/
public void setSecretAccessKey(String secretAccessKey) {
this.secretAccessKey = secretAccessKey;
}
/**
* This is the getter method this will return the attribute value.
* Default ttl for all records.
* Allowed values are 1-172800.
* Field introduced in 17.1.3.
* Unit is sec.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as 60.
* @return ttl
*/
public Integer getTtl() {
return ttl;
}
/**
* This is the setter method to the attribute.
* Default ttl for all records.
* Allowed values are 1-172800.
* Field introduced in 17.1.3.
* Unit is sec.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as 60.
* @param ttl set the ttl.
*/
public void setTtl(Integer ttl) {
this.ttl = ttl;
}
/**
* This is the getter method this will return the attribute value.
* Usable domains to pick from amazon route 53.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return usableDomains
*/
public List getUsableDomains() {
return usableDomains;
}
/**
* This is the setter method. this will set the usableDomains
* Usable domains to pick from amazon route 53.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return usableDomains
*/
public void setUsableDomains(List usableDomains) {
this.usableDomains = usableDomains;
}
/**
* This is the setter method this will set the usableDomains
* Usable domains to pick from amazon route 53.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return usableDomains
*/
public IpamDnsAwsProfile addUsableDomainsItem(String usableDomainsItem) {
if (this.usableDomains == null) {
this.usableDomains = new ArrayList();
}
this.usableDomains.add(usableDomainsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Usable networks for virtual ip.
* If virtualservice does not specify a network and auto_allocate_ip is set, then the first available network from this list will be chosen for ip
* allocation.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return usableNetworkUuids
*/
public List getUsableNetworkUuids() {
return usableNetworkUuids;
}
/**
* This is the setter method. this will set the usableNetworkUuids
* Usable networks for virtual ip.
* If virtualservice does not specify a network and auto_allocate_ip is set, then the first available network from this list will be chosen for ip
* allocation.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return usableNetworkUuids
*/
public void setUsableNetworkUuids(List usableNetworkUuids) {
this.usableNetworkUuids = usableNetworkUuids;
}
/**
* This is the setter method this will set the usableNetworkUuids
* Usable networks for virtual ip.
* If virtualservice does not specify a network and auto_allocate_ip is set, then the first available network from this list will be chosen for ip
* allocation.
* Field introduced in 17.1.1.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return usableNetworkUuids
*/
public IpamDnsAwsProfile addUsableNetworkUuidsItem(String usableNetworkUuidsItem) {
if (this.usableNetworkUuids == null) {
this.usableNetworkUuids = new ArrayList();
}
this.usableNetworkUuids.add(usableNetworkUuidsItem);
return this;
}
/**
* This is the getter method this will return the attribute value.
* Use iam roles instead of access and secret key.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @return useIamRoles
*/
public Boolean getUseIamRoles() {
return useIamRoles;
}
/**
* This is the setter method to the attribute.
* Use iam roles instead of access and secret key.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as false.
* @param useIamRoles set the useIamRoles.
*/
public void setUseIamRoles(Boolean useIamRoles) {
this.useIamRoles = useIamRoles;
}
/**
* This is the getter method this will return the attribute value.
* Vpc name.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return vpc
*/
public String getVpc() {
return vpc;
}
/**
* This is the setter method to the attribute.
* Vpc name.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param vpc set the vpc.
*/
public void setVpc(String vpc) {
this.vpc = vpc;
}
/**
* This is the getter method this will return the attribute value.
* Vpc id.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return vpcId
*/
public String getVpcId() {
return vpcId;
}
/**
* This is the setter method to the attribute.
* Vpc id.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @param vpcId set the vpcId.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
* This is the getter method this will return the attribute value.
* Network configuration for virtual ip per az.
* Field introduced in 17.1.3.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return zones
*/
public List getZones() {
return zones;
}
/**
* This is the setter method. this will set the zones
* Network configuration for virtual ip per az.
* Field introduced in 17.1.3.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return zones
*/
public void setZones(List zones) {
this.zones = zones;
}
/**
* This is the setter method this will set the zones
* Network configuration for virtual ip per az.
* Field introduced in 17.1.3.
* Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
* Default value when not specified in API or module is interpreted by Avi Controller as null.
* @return zones
*/
public IpamDnsAwsProfile addZonesItem(AwsZoneNetwork zonesItem) {
if (this.zones == null) {
this.zones = new ArrayList();
}
this.zones.add(zonesItem);
return this;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IpamDnsAwsProfile objIpamDnsAwsProfile = (IpamDnsAwsProfile) o;
return Objects.equals(this.region, objIpamDnsAwsProfile.region)&&
Objects.equals(this.vpc, objIpamDnsAwsProfile.vpc)&&
Objects.equals(this.vpcId, objIpamDnsAwsProfile.vpcId)&&
Objects.equals(this.useIamRoles, objIpamDnsAwsProfile.useIamRoles)&&
Objects.equals(this.accessKeyId, objIpamDnsAwsProfile.accessKeyId)&&
Objects.equals(this.secretAccessKey, objIpamDnsAwsProfile.secretAccessKey)&&
Objects.equals(this.usableNetworkUuids, objIpamDnsAwsProfile.usableNetworkUuids)&&
Objects.equals(this.usableDomains, objIpamDnsAwsProfile.usableDomains)&&
Objects.equals(this.iamAssumeRole, objIpamDnsAwsProfile.iamAssumeRole)&&
Objects.equals(this.zones, objIpamDnsAwsProfile.zones)&&
Objects.equals(this.ttl, objIpamDnsAwsProfile.ttl)&&
Objects.equals(this.publishVipToPublicZone, objIpamDnsAwsProfile.publishVipToPublicZone)&&
Objects.equals(this.egressServiceSubnets, objIpamDnsAwsProfile.egressServiceSubnets);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IpamDnsAwsProfile {\n");
sb.append(" accessKeyId: ").append(toIndentedString(accessKeyId)).append("\n");
sb.append(" egressServiceSubnets: ").append(toIndentedString(egressServiceSubnets)).append("\n");
sb.append(" iamAssumeRole: ").append(toIndentedString(iamAssumeRole)).append("\n");
sb.append(" publishVipToPublicZone: ").append(toIndentedString(publishVipToPublicZone)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" secretAccessKey: ").append(toIndentedString(secretAccessKey)).append("\n");
sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n");
sb.append(" usableDomains: ").append(toIndentedString(usableDomains)).append("\n");
sb.append(" usableNetworkUuids: ").append(toIndentedString(usableNetworkUuids)).append("\n");
sb.append(" useIamRoles: ").append(toIndentedString(useIamRoles)).append("\n");
sb.append(" vpc: ").append(toIndentedString(vpc)).append("\n");
sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n");
sb.append(" zones: ").append(toIndentedString(zones)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy