Skip to content

Commit

Permalink
Generated from 3bcb5068dd38686779fe7f7aee5b11b6da83f680 (#2257)
Browse files Browse the repository at this point in the history
Updating User Properties
  • Loading branch information
AutorestCI authored Jul 24, 2018
1 parent f8515fa commit 326d3d9
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package com.microsoft.azure.management.datafactoryv2.v2018_06_01;

import java.util.Map;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
Expand All @@ -25,12 +24,6 @@
@JsonSubTypes.Type(name = "Container", value = ControlActivity.class)
})
public class Activity {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map<String, Object> additionalProperties;

/**
* Activity name.
*/
Expand All @@ -53,27 +46,7 @@ public class Activity {
* Activity user properties.
*/
@JsonProperty(value = "userProperties")
private Map<String, String> userProperties;

/**
* Get unmatched properties from the message are deserialized this collection.
*
* @return the additionalProperties value
*/
public Map<String, Object> additionalProperties() {
return this.additionalProperties;
}

/**
* Set unmatched properties from the message are deserialized this collection.
*
* @param additionalProperties the additionalProperties value to set
* @return the Activity object itself.
*/
public Activity withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
private List<UserProperty> userProperties;

/**
* Get activity name.
Expand Down Expand Up @@ -140,7 +113,7 @@ public Activity withDependsOn(List<ActivityDependency> dependsOn) {
*
* @return the userProperties value
*/
public Map<String, String> userProperties() {
public List<UserProperty> userProperties() {
return this.userProperties;
}

Expand All @@ -150,7 +123,7 @@ public Map<String, String> userProperties() {
* @param userProperties the userProperties value to set
* @return the Activity object itself.
*/
public Activity withUserProperties(Map<String, String> userProperties) {
public Activity withUserProperties(List<UserProperty> userProperties) {
this.userProperties = userProperties;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datafactoryv2.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* User property.
*/
public class UserProperty {
/**
* User proprety name.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* User proprety value. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "value", required = true)
private Object value;

/**
* Get user proprety name.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set user proprety name.
*
* @param name the name value to set
* @return the UserProperty object itself.
*/
public UserProperty withName(String name) {
this.name = name;
return this;
}

/**
* Get user proprety value. Type: string (or Expression with resultType string).
*
* @return the value value
*/
public Object value() {
return this.value;
}

/**
* Set user proprety value. Type: string (or Expression with resultType string).
*
* @param value the value value to set
* @return the UserProperty object itself.
*/
public UserProperty withValue(Object value) {
this.value = value;
return this;
}

}

0 comments on commit 326d3d9

Please sign in to comment.