com.google.api.services.migrationcenter.v1.model.SoleTenancyPreferences Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.migrationcenter.v1.model;
/**
* Preferences concerning Sole Tenancy nodes and VMs.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Migration Center API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class SoleTenancyPreferences extends com.google.api.client.json.GenericJson {
/**
* Commitment plan to consider when calculating costs for virtual machine insights and
* recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good
* value to start with.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String commitmentPlan;
/**
* CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Double cpuOvercommitRatio;
/**
* Sole Tenancy nodes maintenance policy.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String hostMaintenancePolicy;
/**
* A list of sole tenant node types. An empty list means that all possible node types will be
* considered.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List nodeTypes;
/**
* Commitment plan to consider when calculating costs for virtual machine insights and
* recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good
* value to start with.
* @return value or {@code null} for none
*/
public java.lang.String getCommitmentPlan() {
return commitmentPlan;
}
/**
* Commitment plan to consider when calculating costs for virtual machine insights and
* recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good
* value to start with.
* @param commitmentPlan commitmentPlan or {@code null} for none
*/
public SoleTenancyPreferences setCommitmentPlan(java.lang.String commitmentPlan) {
this.commitmentPlan = commitmentPlan;
return this;
}
/**
* CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
* @return value or {@code null} for none
*/
public java.lang.Double getCpuOvercommitRatio() {
return cpuOvercommitRatio;
}
/**
* CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.
* @param cpuOvercommitRatio cpuOvercommitRatio or {@code null} for none
*/
public SoleTenancyPreferences setCpuOvercommitRatio(java.lang.Double cpuOvercommitRatio) {
this.cpuOvercommitRatio = cpuOvercommitRatio;
return this;
}
/**
* Sole Tenancy nodes maintenance policy.
* @return value or {@code null} for none
*/
public java.lang.String getHostMaintenancePolicy() {
return hostMaintenancePolicy;
}
/**
* Sole Tenancy nodes maintenance policy.
* @param hostMaintenancePolicy hostMaintenancePolicy or {@code null} for none
*/
public SoleTenancyPreferences setHostMaintenancePolicy(java.lang.String hostMaintenancePolicy) {
this.hostMaintenancePolicy = hostMaintenancePolicy;
return this;
}
/**
* A list of sole tenant node types. An empty list means that all possible node types will be
* considered.
* @return value or {@code null} for none
*/
public java.util.List getNodeTypes() {
return nodeTypes;
}
/**
* A list of sole tenant node types. An empty list means that all possible node types will be
* considered.
* @param nodeTypes nodeTypes or {@code null} for none
*/
public SoleTenancyPreferences setNodeTypes(java.util.List nodeTypes) {
this.nodeTypes = nodeTypes;
return this;
}
@Override
public SoleTenancyPreferences set(String fieldName, Object value) {
return (SoleTenancyPreferences) super.set(fieldName, value);
}
@Override
public SoleTenancyPreferences clone() {
return (SoleTenancyPreferences) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy