com.azure.resourcemanager.automation.models.PythonPackageCreateParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-automation Show documentation
Show all versions of azure-resourcemanager-automation Show documentation
This package contains Microsoft Azure SDK for Automation Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Automation Client. Package tag package-2019-06.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** The parameters supplied to the create or update module operation. */
@JsonFlatten
@Fluent
public class PythonPackageCreateParameters {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PythonPackageCreateParameters.class);
/*
* Gets or sets the tags attached to the resource.
*/
@JsonProperty(value = "tags")
private Map tags;
/*
* Gets or sets the module content link.
*/
@JsonProperty(value = "properties.contentLink", required = true)
private ContentLink contentLink;
/**
* Get the tags property: Gets or sets the tags attached to the resource.
*
* @return the tags value.
*/
public Map tags() {
return this.tags;
}
/**
* Set the tags property: Gets or sets the tags attached to the resource.
*
* @param tags the tags value to set.
* @return the PythonPackageCreateParameters object itself.
*/
public PythonPackageCreateParameters withTags(Map tags) {
this.tags = tags;
return this;
}
/**
* Get the contentLink property: Gets or sets the module content link.
*
* @return the contentLink value.
*/
public ContentLink contentLink() {
return this.contentLink;
}
/**
* Set the contentLink property: Gets or sets the module content link.
*
* @param contentLink the contentLink value to set.
* @return the PythonPackageCreateParameters object itself.
*/
public PythonPackageCreateParameters withContentLink(ContentLink contentLink) {
this.contentLink = contentLink;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (contentLink() == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property contentLink in model PythonPackageCreateParameters"));
} else {
contentLink().validate();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy