com.amazonaws.services.simpledb.model.Attribute.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(78)

本文整理了Java中com.amazonaws.services.simpledb.model.Attribute.<init>()方法的一些代码示例,展示了Attribute.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attribute.<init>()方法的具体详情如下:
包路径:com.amazonaws.services.simpledb.model.Attribute
类名称:Attribute
方法名:<init>

Attribute.<init>介绍

[英]Default constructor for Attribute object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
[中]属性对象的默认构造函数。呼叫者应使用setter或fluent setter(带…)方法在创建对象后初始化该对象。

代码示例

代码示例来源:origin: Netflix/Priam

protected List<Attribute> createAttributesToDeRegister(PriamInstance instance) {
  List<Attribute> attrs = new ArrayList<>();
  attrs.add(new Attribute(Attributes.INSTANCE_ID, instance.getInstanceId()));
  attrs.add(new Attribute(Attributes.TOKEN, instance.getToken()));
  attrs.add(new Attribute(Attributes.APP_ID, instance.getApp()));
  attrs.add(new Attribute(Attributes.ID, Integer.toString(instance.getId())));
  attrs.add(new Attribute(Attributes.AVAILABILITY_ZONE, instance.getRac()));
  attrs.add(new Attribute(Attributes.ELASTIC_IP, instance.getHostIP()));
  attrs.add(new Attribute(Attributes.HOSTNAME, instance.getHostName()));
  attrs.add(new Attribute(Attributes.LOCATION, instance.getDC()));
  attrs.add(new Attribute(Attributes.UPDATE_TS, Long.toString(instance.getUpdatetime())));
  return attrs;
}

代码示例来源:origin: aws/aws-sdk-java

public Attribute unmarshall(StaxUnmarshallerContext context) throws Exception {
  Attribute attribute = new Attribute();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;

代码示例来源:origin: aws-amplify/aws-sdk-android

public Attribute unmarshall(StaxUnmarshallerContext context) throws Exception {
  Attribute attribute = new Attribute();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;

代码示例来源:origin: com.proofpoint.galaxy/galaxy-coordinator

@Override
public void deleteExpectedState(UUID slotId)
{
  Preconditions.checkNotNull(slotId, "id is null");
  if (isDomainCreated()) {
    List<Attribute> attributes = newArrayList();
    attributes.add(new Attribute("state", null));
    attributes.add(new Attribute("binary", null));
    attributes.add(new Attribute("config", null));
    try {
      simpleDb.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(slotId.toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}

代码示例来源:origin: airlift/airship

@Override
public void deleteExpectedState(UUID slotId)
{
  Preconditions.checkNotNull(slotId, "id is null");
  if (isDomainCreated()) {
    List<Attribute> attributes = newArrayList();
    attributes.add(new Attribute("state", null));
    attributes.add(new Attribute("binary", null));
    attributes.add(new Attribute("config", null));
    try {
      simpleDb.deleteAttributes(new DeleteAttributesRequest().withDomainName(domainName).withItemName(slotId.toString()).withAttributes(attributes));
      expectedStateStoreUp();
    }
    catch (Exception e) {
      expectedStateStoreDown(e);
    }
  }
}

代码示例来源:origin: appoxy/simplejpa

attsToDelete.add(new Attribute(columnName, null));
continue;
for (String s : interceptor.getNulledFields().keySet()) {
  String columnName = ai.getPersistentProperty(s).getColumnName();
  attsToDelete2.add(new Attribute(columnName, null));

代码示例来源:origin: com.amazonaws/aws-java-sdk-simpledb

public Attribute unmarshall(StaxUnmarshallerContext context) throws Exception {
  Attribute attribute = new Attribute();
  int originalDepth = context.getCurrentDepth();
  int targetDepth = originalDepth + 1;

相关文章