com.azure.resourcemanager.automation.fluent.models.ActivityInner 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.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.automation.models.ActivityOutputType;
import com.azure.resourcemanager.automation.models.ActivityParameterSet;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
/** Definition of the activity. */
@JsonFlatten
@Fluent
public class ActivityInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ActivityInner.class);
/*
* Gets or sets the id of the resource.
*/
@JsonProperty(value = "id")
private String id;
/*
* Gets the name of the activity.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/*
* Gets or sets the user name of the activity.
*/
@JsonProperty(value = "properties.definition")
private String definition;
/*
* Gets or sets the parameter sets of the activity.
*/
@JsonProperty(value = "properties.parameterSets")
private List parameterSets;
/*
* Gets or sets the output types of the activity.
*/
@JsonProperty(value = "properties.outputTypes")
private List outputTypes;
/*
* Gets or sets the creation time.
*/
@JsonProperty(value = "properties.creationTime")
private OffsetDateTime creationTime;
/*
* Gets or sets the last modified time.
*/
@JsonProperty(value = "properties.lastModifiedTime")
private OffsetDateTime lastModifiedTime;
/*
* Gets or sets the description.
*/
@JsonProperty(value = "properties.description")
private String description;
/**
* Get the id property: Gets or sets the id of the resource.
*
* @return the id value.
*/
public String id() {
return this.id;
}
/**
* Set the id property: Gets or sets the id of the resource.
*
* @param id the id value to set.
* @return the ActivityInner object itself.
*/
public ActivityInner withId(String id) {
this.id = id;
return this;
}
/**
* Get the name property: Gets the name of the activity.
*
* @return the name value.
*/
public String name() {
return this.name;
}
/**
* Get the definition property: Gets or sets the user name of the activity.
*
* @return the definition value.
*/
public String definition() {
return this.definition;
}
/**
* Set the definition property: Gets or sets the user name of the activity.
*
* @param definition the definition value to set.
* @return the ActivityInner object itself.
*/
public ActivityInner withDefinition(String definition) {
this.definition = definition;
return this;
}
/**
* Get the parameterSets property: Gets or sets the parameter sets of the activity.
*
* @return the parameterSets value.
*/
public List parameterSets() {
return this.parameterSets;
}
/**
* Set the parameterSets property: Gets or sets the parameter sets of the activity.
*
* @param parameterSets the parameterSets value to set.
* @return the ActivityInner object itself.
*/
public ActivityInner withParameterSets(List parameterSets) {
this.parameterSets = parameterSets;
return this;
}
/**
* Get the outputTypes property: Gets or sets the output types of the activity.
*
* @return the outputTypes value.
*/
public List outputTypes() {
return this.outputTypes;
}
/**
* Set the outputTypes property: Gets or sets the output types of the activity.
*
* @param outputTypes the outputTypes value to set.
* @return the ActivityInner object itself.
*/
public ActivityInner withOutputTypes(List outputTypes) {
this.outputTypes = outputTypes;
return this;
}
/**
* Get the creationTime property: Gets or sets the creation time.
*
* @return the creationTime value.
*/
public OffsetDateTime creationTime() {
return this.creationTime;
}
/**
* Set the creationTime property: Gets or sets the creation time.
*
* @param creationTime the creationTime value to set.
* @return the ActivityInner object itself.
*/
public ActivityInner withCreationTime(OffsetDateTime creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* Get the lastModifiedTime property: Gets or sets the last modified time.
*
* @return the lastModifiedTime value.
*/
public OffsetDateTime lastModifiedTime() {
return this.lastModifiedTime;
}
/**
* Set the lastModifiedTime property: Gets or sets the last modified time.
*
* @param lastModifiedTime the lastModifiedTime value to set.
* @return the ActivityInner object itself.
*/
public ActivityInner withLastModifiedTime(OffsetDateTime lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
return this;
}
/**
* Get the description property: Gets or sets the description.
*
* @return the description value.
*/
public String description() {
return this.description;
}
/**
* Set the description property: Gets or sets the description.
*
* @param description the description value to set.
* @return the ActivityInner object itself.
*/
public ActivityInner withDescription(String description) {
this.description = description;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (parameterSets() != null) {
parameterSets().forEach(e -> e.validate());
}
if (outputTypes() != null) {
outputTypes().forEach(e -> e.validate());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy